[wp-trac] [WordPress Trac] #16560: let wp_enqueue_script and wp_enqueue_style use '//' as scheme
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 6 06:08:59 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 Release
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------------
Comment (by evansolomon):
Replying to [comment:12 azaozz]:
> This should be dealt with as part of is_ssl().
The leading {{{//}}} is a valid URL syntax, so we should pass it to the
client as is without any manipulation. Figuring out if it's an SSL page
is unnecessary.
Here is a StackOverflow discussion on the same topic:
http://stackoverflow.com/questions/550038/is-it-valid-to-replace-http-
with-in-a-script-src-http
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16560#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list