Make WordPress Core


Ignore:
Timestamp:
06/25/2015 02:28:50 AM (10 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/class-wp-editor.php

    r32899 r32935  
    543543                }
    544544
    545                 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     545                $suffix = SCRIPT_DEBUG ? '' : '.min';
    546546                $version = 'ver=' . $wp_version;
    547547                $dashicons = includes_url( "css/dashicons$suffix.css?$version" );
     
    11351135        );
    11361136
    1137         $suffix = ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) ? '' : '.min';
     1137        $suffix = SCRIPT_DEBUG ? '' : '.min';
    11381138
    11391139        /**
Note: See TracChangeset for help on using the changeset viewer.