WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/07/2013 07:22:57 PM (6 years ago)
Author:
DrewAPicture
Message:

Avoid a notice by checking that SCRIPT_DEBUG is defined before evaluating it in register_admin_color_schemes().

See #26316.

File:
1 edited

Legend:

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

    r26780 r26786  
    21172117function register_admin_color_schemes() {
    21182118    $suffix = is_rtl() ? '-rtl' : '';
    2119     $suffix .= SCRIPT_DEBUG ? '' : '.min';
     2119    $suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    21202120
    21212121    wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ),
Note: See TracChangeset for help on using the changeset viewer.