Make WordPress Core

Changeset 13183


Ignore:
Timestamp:
02/17/2010 08:25:51 PM (15 years ago)
Author:
nacin
Message:

Remove STYLE_DEBUG constant, SCRIPT_DEBUG now handles both scripts and CSS. Fixes #12237

File:
1 edited

Legend:

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

    r13182 r13183  
    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,
     
    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' );
     
    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
Note: See TracChangeset for help on using the changeset viewer.