WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/25/2015 02:28:50 AM (4 years ago)
Author:
azaozz
Message:

Define SCRIPT_DEBUG early on every load, similarly to WP_DEBUG. Remove defined( 'SCRIPT_DEBUG' ) checks.
Fixes #32333.

File:
1 edited

Legend:

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

    r32900 r32935  
    42564256
    42574257    $version = 'ver=' . $wp_version;
    4258     $develop_src = false !== strpos( $wp_version, '-src' );
    4259 
    4260     if ( $develop_src || ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ) {
     4258
     4259    if ( SCRIPT_DEBUG ) {
    42614260        $settings['source'] = array(
    42624261            /** This filter is documented in wp-includes/class.wp-scripts.php */
Note: See TracChangeset for help on using the changeset viewer.