Make WordPress Core


Ignore:
Timestamp:
08/16/2013 08:32:59 PM (11 years ago)
Author:
duck_
Message:

Search for wp-util.min.js in the correct directory when auto-defining SCRIPT_DEBUG.

See #24976, [25005].

File:
1 edited

Legend:

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

    r25020 r25040  
    5959
    6060    if ( ! defined( 'SCRIPT_DEBUG' ) )
    61         define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/wp-util.min.js' ) );
     61        define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/js/wp-util.min.js' ) );
    6262
    6363    $suffix = SCRIPT_DEBUG ? '' : '.min';
     
    535535
    536536    if ( ! defined( 'SCRIPT_DEBUG' ) )
    537         define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/wp-util.min.js' ) );
     537        define( 'SCRIPT_DEBUG', ! file_exists( ABSPATH . WPINC . '/js/wp-util.min.js' ) );
    538538
    539539    $suffix = SCRIPT_DEBUG ? '' : '.min';
Note: See TracChangeset for help on using the changeset viewer.