Commit d35fe7d
committed
Formatting: Allow specifying
`esc_url()` will now prepend `https://` to the URL if it does not already contain a scheme and the first item in the `$protocols` array is `'https'`.
Follow-up to [5088], [6015], [13299], [33851], [60672].
Props sabernhardt, mkaz, rachelbaker, audrasjb, costdev, aksl95, johnbillion, pcarvalho, SergeyBiryukov.
Fixes #52886.
git-svn-id: https://develop.svn.wordpress.org/trunk@60734 602fd350-edb4-49c9-b593-d223f7449a82https:// as the default protocol in esc_url().1 parent d44463d commit d35fe7d
File tree
2 files changed
+39
-3
lines changed- src/wp-includes
- tests/phpunit/tests/formatting
2 files changed
+39
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4642 | 4642 | | |
4643 | 4643 | | |
4644 | 4644 | | |
| 4645 | + | |
| 4646 | + | |
4645 | 4647 | | |
4646 | 4648 | | |
4647 | 4649 | | |
| |||
4674 | 4676 | | |
4675 | 4677 | | |
4676 | 4678 | | |
4677 | | - | |
| 4679 | + | |
| 4680 | + | |
4678 | 4681 | | |
4679 | 4682 | | |
4680 | 4683 | | |
4681 | 4684 | | |
4682 | | - | |
| 4685 | + | |
| 4686 | + | |
4683 | 4687 | | |
4684 | 4688 | | |
4685 | 4689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
99 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
103 | 135 | | |
104 | 136 | | |
105 | 137 | | |
| |||
0 commit comments