Make WordPress Core

Changeset 32482


Ignore:
Timestamp:
05/10/2015 06:23:21 PM (10 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r32296 r32482  
    41414141
    41424142    $version = 'ver=' . $wp_version;
    4143 
    4144     if ( defined( 'SCRIPT_DEBUG' ) && 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.