From e4d483efa242e748d71dc03a961f1f12b1d4c591 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 18 Feb 2010 10:30:28 +0000 Subject: [PATCH] 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 --- wp-includes/class.wp-styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class.wp-styles.php b/wp-includes/class.wp-styles.php index 83b4addbc0..97acdf804a 100644 --- a/wp-includes/class.wp-styles.php +++ b/wp-includes/class.wp-styles.php @@ -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; }