summaryrefslogtreecommitdiffstats
path: root/wp-includes/class.wp-scripts.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/class.wp-scripts.php')
-rw-r--r--wp-includes/class.wp-scripts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php
index d829c8e..7652aec 100644
--- a/wp-includes/class.wp-scripts.php
+++ b/wp-includes/class.wp-scripts.php
@@ -50,7 +50,7 @@ class WP_Scripts extends WP_Dependencies {
$ver .= '&' . $this->args[$handle];
$src = $this->registered[$handle]->src;
- if ( !preg_match('|^https?://|', $src) ) {
+ if ( !preg_match('|^https?://|', $src) && !preg_match('|^' . preg_quote(WP_CONTENT_URL) . '|', $src) ) {
$src = $this->base_url . $src;
}