Make WordPress Core

Changeset 32296


Ignore:
Timestamp:
04/26/2015 10:35:53 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Check if SCRIPT_DEBUG is defined before using it in print_emoji_detection_script().

props Craig Ralston.
fixes #32118 for trunk.

File:
1 edited

Legend:

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

    r32164 r32296  
    41424142    $version = 'ver=' . $wp_version;
    41434143
    4144     if ( SCRIPT_DEBUG ) {
     4144    if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
    41454145        $settings['source'] = array(
    41464146            /** This filter is documented in wp-includes/class.wp-scripts.php */
Note: See TracChangeset for help on using the changeset viewer.