Fix the 'colors' meta-css src (boolean) value generating parse_url errors, fixes #11820

git-svn-id: https://develop.svn.wordpress.org/trunk@13193 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2010-02-18 10:30:28 +00:00
parent 6ea8ad96ef
commit e4d483efa2
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class WP_Styles extends WP_Dependencies {
}
function _css_href( $src, $ver, $handle ) {
if ( !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
if ( !is_bool($src) && !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
$src = $this->base_url . $src;
}