Skip to content

Commit

Permalink
Removed usage of Sledgehammer\DEBUG_VAR
Browse files Browse the repository at this point in the history
  • Loading branch information
bfanger committed Jun 21, 2018
1 parent 8277f45 commit ae9ae56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public static function initialize()
}
define('WEBPATH', \Sledgehammer\WEBPATH);

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

0 comments on commit ae9ae56

Please sign in to comment.