Commit baa4c8b
ocean90
Script Loader: Fix protocol-relative URLs for the
`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`.
Props swissspidy, peterwilsoncc.
Props azaozz for review.
Fixes #37652.
Built from https://develop.svn.wordpress.org/trunk@38255
git-svn-id: http://core.svn.wordpress.org/trunk@38196 1a063a9b-81f0-0310-95a4-ce76da25c4cdpreconnect relation type.1 parent 90f9f02 commit baa4c8b
2 files changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2839 | 2839 | | |
2840 | 2840 | | |
2841 | 2841 | | |
2842 | | - | |
2843 | | - | |
2844 | | - | |
| 2842 | + | |
2845 | 2843 | | |
2846 | 2844 | | |
2847 | | - | |
| 2845 | + | |
| 2846 | + | |
2848 | 2847 | | |
2849 | 2848 | | |
2850 | 2849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments