From 481737b4ae9a846781e416a2f817d982ebbf286d Mon Sep 17 00:00:00 2001 From: azaozz 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: http://svn.automattic.com/wordpress/trunk@13193 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }