WordPress.org

Make WordPress Core

Changeset 36590


Ignore:
Timestamp:
02/19/16 20:33:42 (19 months ago)
Author:
ocean90
Message:

Styles: Bail if WP_Styles::_css_href() returns an empty value.

The style colors gets registered with true as the source value which gets handled later by wp_style_loader_src(), a callback for the style_loader_src filter in WP_Styles::_css_href(). wp_style_loader_src() may return false, for example for the default color scheme.

This was removed in [36550].

See #35229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-styles.php

    r36550 r36590  
    8787 
    8888        $href = $this->_css_href( $obj->src, $ver, $handle ); 
     89        if ( ! $href ) { 
     90            return true; 
     91        } 
     92 
    8993        $rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; 
    9094        $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : ''; 
Note: See TracChangeset for help on using the changeset viewer.