Define SCRIPT_DEBUG early on every load, similarly to WP_DEBUG. Remove defined( 'SCRIPT_DEBUG' ) checks.
Fixes #32333. Built from https://develop.svn.wordpress.org/trunk@32935 git-svn-id: http://core.svn.wordpress.org/trunk@32906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -71,6 +71,18 @@ function wp_initial_constants() {
|
||||
if ( !defined('WP_CACHE') )
|
||||
define('WP_CACHE', false);
|
||||
|
||||
// Add define('SCRIPT_DEBUG', true); to wp-config.php to enable loading of non-minified,
|
||||
// non-concatenated scripts and stylesheets.
|
||||
if ( ! defined( 'SCRIPT_DEBUG' ) ) {
|
||||
if ( ! empty( $GLOBALS['wp_version'] ) ) {
|
||||
$develop_src = false !== strpos( $GLOBALS['wp_version'], '-src' );
|
||||
} else {
|
||||
$develop_src = false;
|
||||
}
|
||||
|
||||
define( 'SCRIPT_DEBUG', $develop_src );
|
||||
}
|
||||
|
||||
/**
|
||||
* Private
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user