Search for wp-util.min.js in the correct directory when auto-defining SCRIPT_DEBUG.

See #24976, [25005].

Built from https://develop.svn.wordpress.org/trunk@25040


git-svn-id: http://core.svn.wordpress.org/trunk@25027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jon Cave 2013-08-16 20:33:10 +00:00
parent 9adfd648a8
commit b3ce011b8f

View File

@ -58,7 +58,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->default_dirs = array('/wp-admin/js/', '/wp-includes/js/');
if ( ! defined( 'SCRIPT_DEBUG' ) )
define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/wp-util.min.js' ) );
define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/js/wp-util.min.js' ) );
$suffix = SCRIPT_DEBUG ? '' : '.min';
@ -534,7 +534,7 @@ function wp_default_styles( &$styles ) {
$styles->default_dirs = array('/wp-admin/', '/wp-includes/css/');
if ( ! defined( 'SCRIPT_DEBUG' ) )
define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/wp-util.min.js' ) );
define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/js/wp-util.min.js' ) );
$suffix = SCRIPT_DEBUG ? '' : '.min';