mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-01 19:01:17 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@36590 git-svn-id: http://core.svn.wordpress.org/trunk@36557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
edceb0173c
commit
9d8204467c
@ -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'] ) . "'" : '';
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36589';
|
||||
$wp_version = '4.5-alpha-36590';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user