[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 21:15:05 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 mimecine):
That was easy:) I did it on a newly checked out copy, so I haven't yet
run the code to make sure everything works alright, but changing from
'^https?://' to '^(\w+:)?//' should do the trick with http://, https:// -
even ftp://, file:/// or whatever shows up ahead ( gfile://, spdy://
etc.) - sure thing, if someone use file:/// he/she is toast, but that
shouldn't be our concern...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16560#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list