mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user