WordPress.org

Make WordPress Core

Ticket #25824: DASH-notice.diff

File DASH-notice.diff, 541 bytes (added by MikeHansenMe, 8 years ago)

Check if SCRIPT_DEBUG is defined

  • src/wp-includes/general-template.php

     
    21072107 * @since 3.0.0
    21082108 */
    21092109function register_admin_color_schemes() {
    2110         $suffix = SCRIPT_DEBUG ? '' : '.min';
     2110        $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    21112111
    21122112        wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ),
    21132113                admin_url( "css/colors-fresh$suffix.css" ),