WordPress.org

Make WordPress Core

Ticket #12237: 12237.diff

File 12237.diff, 1.7 KB (added by nacin, 4 years ago)
  • wp-includes/script-loader.php

     
    88 * file. 
    99 * 
    1010 * Several constants are used to manage the loading, concatenating and compression of scripts and CSS: 
    11  * define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and disables compression and concatenation, 
    12  * define('STYLE_DEBUG', true); loads the development (non-minified) versions of all CSS and disables compression and concatenation, 
     11 * define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and CSS and disables compression and concatenation, 
    1312 * define('CONCATENATE_SCRIPTS', false); disables compression and concatenation of scripts and CSS, 
    1413 * define('COMPRESS_SCRIPTS', false); disables compression of scripts, 
    1514 * define('COMPRESS_CSS', false); disables compression of CSS, 
     
    427426        $styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr'; 
    428427        $styles->default_dirs = array('/wp-admin/'); 
    429428 
    430         $suffix = defined('STYLE_DEBUG') && STYLE_DEBUG ? '.dev' : ''; 
     429        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : ''; 
    431430 
    432431        $rtl_styles = array( 'wp-admin', 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' ); 
    433432 
     
    547546                $parsed = parse_url( $src ); 
    548547                $url = $color->url; 
    549548 
    550                 if ( defined('STYLE_DEBUG') && STYLE_DEBUG ) 
     549                if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) 
    551550                        $url = preg_replace('/.css$|.css(?=\?)/', '.dev.css', $url); 
    552551 
    553552                if ( isset($parsed['query']) && $parsed['query'] ) {