Check if SCRIPT_DEBUG is defined before using it in print_emoji_detection_script().

props Craig Ralston.
fixes #32118 for trunk.
Built from https://develop.svn.wordpress.org/trunk@32296


git-svn-id: http://core.svn.wordpress.org/trunk@32267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-04-26 10:36:28 +00:00
parent b63a76fa4b
commit 89bf126626
2 changed files with 2 additions and 2 deletions

View File

@ -4141,7 +4141,7 @@ function print_emoji_detection_script() {
$version = 'ver=' . $wp_version;
if ( SCRIPT_DEBUG ) {
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
$settings['source'] = array(
/** This filter is documented in wp-includes/class.wp-scripts.php */
'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32295';
$wp_version = '4.3-alpha-32296';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.