Changes between Version 5 and Version 16 of Ticket #52886
- Timestamp:
- 07/09/2025 09:50:51 PM (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #52886
- Property Keywords has-unit-tests added; needs-unit-tests removed
-
Property
Milestone
changed from
5.8toFuture Release
-
Ticket #52886 – Description
v5 v16 1 1 2 If no protocol is specified for esc_url the function will automatically prepend the http://protocol. This is likely now the wrong assumption, but potentially can break backwards compatibility if changed, since developers may rely on this.2 If no protocol is specified for `esc_url` the function will automatically prepend the `http://` protocol. This is likely now the wrong assumption, but potentially can break backwards compatibility if changed, since developers may rely on this. 3 3 4 So this change proposes an additional parameter to the function to specify a default protocol, keeping the old default but now allowing for one to ask for https://4 So this change proposes an additional parameter to the function to specify a default protocol, keeping the old default but now allowing for one to ask for `https://` 5 5 6 This came up in this ticket: https://github.com/WordPress/gutenberg/pull/301006 This came up in this ticket: [https://github.com/WordPress/gutenberg/pull/30100 GB30100] 7 7 8 8 The usage could then be: