Wordpress 3.5
[autoinstalls/wordpress.git] / wp-includes / class.wp-scripts.php
index 0ac2af4d9738299d830a5677281bb5579d2cfebd..f75929b4abf875beb27ab1f6f3f325b23ca27eb1 100644 (file)
@@ -110,7 +110,7 @@ class WP_Scripts extends WP_Dependencies {
                }
 
                $this->print_extra_script( $handle );
-               if ( !preg_match('|^https?://|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
+               if ( !preg_match('|^(https?:)?//|', $src) && ! ( $this->content_url && 0 === strpos($src, $this->content_url) ) ) {
                        $src = $this->base_url . $src;
                }