Make WordPress Core

Changeset 36591


Ignore:
Timestamp:
02/19/2016 08:43:10 PM (9 years ago)
Author:
ocean90
Message:

Script Loader: Don't parse $src if the current color scheme isn't registered.

Avoids a parse_url() call on each request if the default colors scheme is in use.

Fixes #35882.

File:
1 edited

Legend:

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

    r36586 r36591  
    872872
    873873        $color = $_wp_admin_css_colors[$color];
    874         $parsed = parse_url( $src );
    875874        $url = $color->url;
    876875
     
    879878        }
    880879
     880        $parsed = parse_url( $src );
    881881        if ( isset($parsed['query']) && $parsed['query'] ) {
    882882            wp_parse_str( $parsed['query'], $qv );
Note: See TracChangeset for help on using the changeset viewer.