[wp-trac] [WordPress Trac] #20915: Support for protocol-less URLs in wp_enqueue_*
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 12 07:31:33 UTC 2012
#20915: Support for protocol-less URLs in wp_enqueue_*
--------------------------+-----------------------------
Reporter: batmoo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
The wp_enqueue_* functions should support protocol-less URLs. Currently
they're handled as if they were absolute URLs.
For example:
{{{wp_enqueue_script( 'js-no-proto', '//example.com/js/js.js' );}}}
Gets output as:
{{{<script type='text/javascript' src='http://example.com/js/js-
proto.js?ver=3.4-RC3'></script>}}}
It should look like:
{{{<script type='text/javascript'
src='//example.com/js/js.js?ver=3.4-RC3'></script>}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20915>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list