[wp-trac] [WordPress Trac] #18336: Properly detect scheme-less URL's in wp_enqueue_script

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 5 00:54:03 UTC 2011


#18336: Properly detect scheme-less URL's in wp_enqueue_script
-------------------------+-----------------------------
 Reporter:  evansolomon  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.2.1
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 We should detect script URL's with leading {{{//}}} and load either HTTP
 or HTTPS depending on the requesting page.  This would more accurately
 reflect the behavior of the {{{src}}} parameter of the default
 {{{script}}} tag in HTML.

 Several third party scripts use this format to load securely only when
 required.

 There's no reason for a relative path to start with {{{//}}} so this
 should not break any pre-existing use cases.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18336>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list