Ticket #6938: no_base_url_for_content.diff
File no_base_url_for_content.diff, 515 bytes (added by , 17 years ago) |
---|
-
wp-includes/class.wp-scripts.php
50 50 $ver .= '&' . $this->args[$handle]; 51 51 52 52 $src = $this->registered[$handle]->src; 53 if ( !preg_match('|^https?://|', $src) ) {53 if ( !preg_match('|^https?://|', $src) && !preg_match('|^' . preg_quote(WP_CONTENT_URL) . '|', $src)) { 54 54 $src = $this->base_url . $src; 55 55 } 56 56