[wp-trac] [WordPress Trac] #16560: let wp_enqueue_script and wp_enqueue_style use '//' as scheme

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 25 09:24:58 UTC 2011


#16560: let wp_enqueue_script and wp_enqueue_style use '//' as scheme
-----------------------------------------------+---------------------------
 Reporter:  mimecine                           |       Owner:
     Type:  enhancement                        |      Status:  new
 Priority:  normal                             |   Milestone:  Future
Component:  General                            |  Release
 Severity:  normal                             |     Version:  3.1
 Keywords:  has-patch needs-testing 3.4-early  |  Resolution:
-----------------------------------------------+---------------------------
Changes (by TobiasBg):

 * keywords:  has-patch needs-testing => has-patch needs-testing 3.4-early


Comment:

 I'd also like to see this patch in.
 We would not have to modify any existing core code that uses
 {{{is_ssl()}}, but it would allow users/developers to use protocol
 relative URLs in {{{wp_register_script()}}} calls, if desired. No one
 would be forced to do it, but you would get the possibility. If you do it
 currently, the site URL gets prepended, gna.

 If {{{^(\w+:)?//}}} seems to risky, let's go with {{{^(https?:)?//}}} as a
 starter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16560#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list