Make WordPress Core


Ignore:
Timestamp:
02/06/2014 10:15:25 PM (12 years ago)
Author:
nacin
Message:

Fix the conditional enqueueing/printing of colors stylesheets, without breaking dependencies.

fixes #18380.
see #20729 which should properly fix this.

File:
1 edited

Legend:

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

    r27106 r27111  
    588588
    589589    // Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
     590
    590591    $styles->add( 'colors', true, array( 'wp-admin', 'buttons', 'open-sans', 'dashicons' ) );
    591592
     
    696697        $url = $color->url;
    697698
     699        if ( ! $url ) {
     700            return false;
     701        }
     702
    698703        if ( isset($parsed['query']) && $parsed['query'] ) {
    699704            wp_parse_str( $parsed['query'], $qv );
Note: See TracChangeset for help on using the changeset viewer.