Wordpress 3.5
[autoinstalls/wordpress.git] / wp-includes / class.wp-styles.php
index 48e8f7ef1d8f4f452f32aa51fa48b14b7b98b049..fdfe5afe3213b2afd7ded35095b6ca1bae47085d 100644 (file)
@@ -135,7 +135,7 @@ class WP_Styles extends WP_Dependencies {
        }
 
        function _css_href( $src, $ver, $handle ) {
-               if ( !is_bool($src) && !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;
                }