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. git-svn-id: https://develop.svn.wordpress.org/trunk@36590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
218c1240b8
commit
066f081ed5
@ -86,6 +86,10 @@ class WP_Styles extends WP_Dependencies {
|
||||
}
|
||||
|
||||
$href = $this->_css_href( $obj->src, $ver, $handle );
|
||||
if ( ! $href ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet';
|
||||
$title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user