From 04ef03636e207f30f1d1ef1204599854879df61d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 26 Apr 2015 10:35:53 +0000 Subject: [PATCH] Check if `SCRIPT_DEBUG` is defined before using it in `print_emoji_detection_script()`. props Craig Ralston. fixes #32118 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@32296 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index eacc2600d0..a3dd9c7563 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -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' ),