From 9a74f7c01af2ce077ee9bc6c8981dfaa69999206 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 17 Jul 2015 21:40:27 +0000 Subject: [PATCH] Check if running from /src or SCRIPT_DEBUG is defined in print_emoji_detection_script(). Fixes #32118 for 4.2. Built from https://develop.svn.wordpress.org/branches/4.2@33315 git-svn-id: http://core.svn.wordpress.org/branches/4.2@33287 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index acdc3d782f..9a2dce8637 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4140,8 +4140,9 @@ function print_emoji_detection_script() { ); $version = 'ver=' . $wp_version; + $develop_src = false !== strpos( $wp_version, '-src' ); - if ( SCRIPT_DEBUG ) { + if ( $develop_src || ( 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' ),