WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/18/2016 09:56:06 AM (5 years ago)
Author:
dd32
Message:

CSS: Stop using wp-admin.min.css and instead queue the individual stylesheets up through load-styles.php.
We still generate the wp-admin.* files for compabitility purposes, however they only include the @import() lines.

Fixes #35229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/load-styles.php

    r36312 r36341  
    1616require( ABSPATH . WPINC . '/version.php' );
    1717
    18 $load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] );
     18$load = $_GET['load'];
     19if ( is_array( $load ) ) {
     20    $load = implode( '', $load );
     21}
     22$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
    1923$load = array_unique( explode( ',', $load ) );
    2024
     
    4549
    4650    $style = $wp_styles->registered[$handle];
     51
     52    if ( empty( $style->src ) ) {
     53        continue;
     54    }
     55
    4756    $path = ABSPATH . $style->src;
    4857
Note: See TracChangeset for help on using the changeset viewer.