Check if running from /src or SCRIPT_DEBUG is defined in `print_emoji_detection_script()`.

See #32118.

git-svn-id: https://develop.svn.wordpress.org/trunk@32482 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-05-10 18:23:21 +00:00
parent d9b911e477
commit 099c066e24
1 changed files with 2 additions and 1 deletions

View File

@ -4140,8 +4140,9 @@ function print_emoji_detection_script() {
);
$version = 'ver=' . $wp_version;
$develop_src = false !== strpos( $wp_version, '-src' );
if ( defined( 'SCRIPT_DEBUG' ) && 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' ),