Skip to content

Commit ae9ae56

Browse files
committed
Removed usage of Sledgehammer\DEBUG_VAR
1 parent 8277f45 commit ae9ae56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Bridge.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public static function initialize()
5757
}
5858
define('WEBPATH', \Sledgehammer\WEBPATH);
5959

60-
if (WP_DEBUG || !empty($_GET[\Sledgehammer\DEBUG_VAR])) {
60+
if (WP_DEBUG) {
6161
add_action('admin_enqueue_scripts', function () {
62-
wp_enqueue_style('sh-debug', '/../core/css/debug.css');
62+
wp_enqueue_style('sh-debug', 'https://rawgit.com/sledgehammer/core/master/public/css/debug.css');
6363
});
6464
add_action('admin_footer', [self::class, 'statusbar']);
6565
add_action('wp_footer', [self::class, 'statusbar']);

0 commit comments

Comments
 (0)