Show
Ignore:
Timestamp:
07/09/08 17:24:36 (5 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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        }