[wp-trac] [WordPress Trac] #37652: Protocol-relative preconnects are broken

WordPress Trac noreply at wordpress.org
Sat Aug 13 18:39:41 UTC 2016


#37652: Protocol-relative preconnects are broken
---------------------------------------------+--------------------------
 Reporter:  neoxx                            |       Owner:  ocean90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.6
Component:  Script Loader                    |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+--------------------------

Comment (by ocean90):

 In [changeset:"38256"]:
 {{{
 #!CommitTicketReference repository="" revision="38256"
 Script Loader: Fix protocol-relative URLs for the `preconnect` relation
 type.

 `wp_resource_hints()` parses the URL for the `preconnect` and `dns-
 prefetch` relation types to ensure correct values for both. While
 protocol-relative URLs are supported for `dns-prefetch`, the double slash
 was lost for `preconnect`.

 Merge of [38255] to the 4.6 branch.

 Props swissspidy, peterwilsoncc.
 Props azaozz for review.
 See #37652.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37652#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list