Make WordPress Core


Ignore:
Timestamp:
12/07/2013 09:04:02 AM (11 years ago)
Author:
nacin
Message:

Admin color schemes: Manually handle RTL and minified versions of the CSS files on registration.

This bypasses WP_Styles entirely, which is much simpler for the moment, given that color schemes bypass WP_Styles for plenty already. The script loader is told to stop thinking of colors.css as an RTL-ified file. The colors-fresh handle, used directly on the login screen, needed to be (even before this commit).

fixes #26316.

File:
1 edited

Legend:

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

    r26776 r26780  
    552552    $suffix = SCRIPT_DEBUG ? '' : '.min';
    553553
    554     $rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'customize-controls', 'media-views', 'wp-color-picker', 'wp-pointer', 'editor-buttons', 'farbtastic', 'wp-auth-check', 'wp-jquery-ui-dialog', 'media-views', 'buttons', 'install', 'colors' );
     554    $rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'customize-controls', 'media-views', 'wp-color-picker', 'wp-pointer', 'editor-buttons', 'farbtastic', 'wp-auth-check', 'wp-jquery-ui-dialog', 'media-views', 'buttons', 'install' );
    555555
    556556    $styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array( 'open-sans', 'dashicons' ) );
     
    700700        $url = $color->url;
    701701
    702         if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG )
    703             $url = preg_replace( '/.min.css$|.min.css(?=\?)/', '.css', $url );
    704 
    705702        if ( isset($parsed['query']) && $parsed['query'] ) {
    706703            wp_parse_str( $parsed['query'], $qv );
Note: See TracChangeset for help on using the changeset viewer.