Define SCRIPT_DEBUG early on every load, similarly to WP_DEBUG. Remove defined( 'SCRIPT_DEBUG' ) checks.

Fixes #32333.

git-svn-id: https://develop.svn.wordpress.org/trunk@32935 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2015-06-25 02:28:50 +00:00
parent e06cc095b4
commit dc56b51c47
5 changed files with 17 additions and 6 deletions

View File

@@ -542,7 +542,7 @@ final class _WP_Editors {
self::$first_init['external_plugins'] = wp_json_encode( $mce_external_plugins );
}
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
$suffix = SCRIPT_DEBUG ? '' : '.min';
$version = 'ver=' . $wp_version;
$dashicons = includes_url( "css/dashicons$suffix.css?$version" );
@@ -1134,7 +1134,7 @@ final class _WP_Editors {
'language' => self::$mce_locale
);
$suffix = ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) ? '' : '.min';
$suffix = SCRIPT_DEBUG ? '' : '.min';
/**
* Fires immediately before the TinyMCE settings are printed.