[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 Apr 26 19:59:51 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:  Future Release
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------

Comment (by xyzzy):

 I'm happy to see this change. Thanks.

 Would it make sense to also allow relative URLs -- without a protocol --
 for scripts and CSS files? That way, we would not have to worry about the
 hostname.

 This would allow something like:

 `wp_register_script( 'myscript', '/path/to/my/script.js');`

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


More information about the wp-trac mailing list