Make WordPress Core

Ticket #6938: no_base_url_for_content.diff

File no_base_url_for_content.diff, 515 bytes (added by ryan, 17 years ago)
  • wp-includes/class.wp-scripts.php

     
    5050                        $ver .= '&' . $this->args[$handle];
    5151
    5252                $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)) {
    5454                        $src = $this->base_url . $src;
    5555                }
    5656