Make WordPress Core

Changeset 33315


Ignore:
Timestamp:
07/17/2015 09:39:09 PM (9 years ago)
Author:
azaozz
Message:

Check if running from /src or SCRIPT_DEBUG is defined in print_emoji_detection_script().
Fixes #32118 for 4.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/src/wp-includes/formatting.php

    r32164 r33315  
    41414141
    41424142    $version = 'ver=' . $wp_version;
    4143 
    4144     if ( SCRIPT_DEBUG ) {
     4143    $develop_src = false !== strpos( $wp_version, '-src' );
     4144
     4145    if ( $develop_src || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) {
    41454146        $settings['source'] = array(
    41464147            /** This filter is documented in wp-includes/class.wp-scripts.php */
Note: See TracChangeset for help on using the changeset viewer.