WordPress.org

Make WordPress Core

Changeset 26147


Ignore:
Timestamp:
11/14/2013 12:02:36 AM (7 years ago)
Author:
nacin
Message:

Remove SCRIPT_DEBUG reference from register_admin_color_schemes().

Instead, script-loader.php handles converting .min.css to .css when SCRIPT_DEBUG is on, and has since r21592. (This was done for compatibility with plugin color schemes that used .css and .dev.css.)

see #25858.

File:
1 edited

Legend:

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

    r26146 r26147  
    21082108 */
    21092109function register_admin_color_schemes() {
    2110     $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
    2111 
    21122110    wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ),
    2113         admin_url( "css/colors-fresh$suffix.css" ),
     2111        admin_url( 'css/colors-fresh.min.css' ),
    21142112        array( '#222', '#333', '#0074a2', '#2ea2cc' )
    21152113    );
    21162114
    21172115    // Other color schemes are not available when running out of src
    2118     if ( ! strpos( $GLOBALS['wp_version'], '-src' ) ) {
    2119         wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ),
    2120             admin_url( "css/color-schemes/light/colors$suffix.css" ),
    2121             array( '#e5e5e5', '#999', '#d64e07', '#04a4cc' ),
    2122             array( 'base' => '#999', 'focus' => '#ccc', 'current' => '#ccc' )
    2123         );
    2124 
    2125         wp_admin_css_color( 'blue', _x( 'Blue', 'admin color scheme' ),
    2126             admin_url( "css/color-schemes/blue/colors$suffix.css" ),
    2127             array( '#096484', '#4796b3', '#52accc', '#74B6CE' ),
    2128             array( 'base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff' )
    2129         );
    2130 
    2131         wp_admin_css_color( 'midnight', _x( 'Midnight', 'admin color scheme' ),
    2132             admin_url( "css/color-schemes/midnight/colors$suffix.css" ),
    2133             array( '#25282b', '#363b3f', '#69a8bb', '#e14d43' ),
    2134             array( 'base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff' )
    2135         );
    2136     }
     2116    if ( false !== strpos( $GLOBALS['wp_version'], '-src' ) )
     2117        return;
     2118
     2119    wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ),
     2120        admin_url( 'css/color-schemes/light/colors.min.css' ),
     2121        array( '#e5e5e5', '#999', '#d64e07', '#04a4cc' ),
     2122        array( 'base' => '#999', 'focus' => '#ccc', 'current' => '#ccc' )
     2123    );
     2124
     2125    wp_admin_css_color( 'blue', _x( 'Blue', 'admin color scheme' ),
     2126        admin_url( 'css/color-schemes/blue/colors.min.css' ),
     2127        array( '#096484', '#4796b3', '#52accc', '#74B6CE' ),
     2128        array( 'base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff' )
     2129    );
     2130
     2131    wp_admin_css_color( 'midnight', _x( 'Midnight', 'admin color scheme' ),
     2132        admin_url( 'css/color-schemes/midnight/colors.min.css' ),
     2133        array( '#25282b', '#363b3f', '#69a8bb', '#e14d43' ),
     2134        array( 'base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff' )
     2135    );
    21372136}
    21382137
Note: See TracChangeset for help on using the changeset viewer.