Make WordPress Core


Ignore:
Timestamp:
07/09/2008 05:24:36 PM (16 years ago)
Author:
ryan
Message:

Introduce content_url(). Don't prepend base url to content url in script loader. see #6938 #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class.wp-scripts.php

    r7976 r8301  
    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        }
Note: See TracChangeset for help on using the changeset viewer.