[wp-trac] [WordPress Trac] #16560: let wp_enqueue_script and wp_enqueue_style use '//' as scheme
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 15 02:28:17 UTC 2011
#16560: let wp_enqueue_script and wp_enqueue_style use '//' as scheme
--------------------------+-----------------------------
Reporter: mimecine | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Keywords:
--------------------------+-----------------------------
{{{
#!html
<p>When loading external resources, most browsers (need to be confirmed)
will auto select between https:// and http:// if the url-scheme is simply
//. For example,
//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js would load
over https if the containing page was https itself, but over http if
wasn't.</p>
<p>class.wp-scripts.php and class.wp-styles.php does a regex check for
^https?:// to determine if it is an external resource or not, but should
really use ^(https?:)?// - or even ^(\w+:)?// (since some loony *could*
use ftp for example). </p>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16560>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list