WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#28632 closed enhancement (wontfix)

`set_url_scheme()` should allow protocol-relative as a scheme argument

Reported by: johnbillion Owned by:
Milestone: Priority: low
Severity: minor Version: 3.4
Component: Formatting Keywords: has-patch
Focuses: Cc:
PR Number:

Description

set_url_scheme() accepts 'relative' as a scheme, but there's nothing for protocol-relative. I recently had a use for this.

Attachments (1)

28632.patch (3.0 KB) - added by johnbillion 5 years ago.

Download all attachments as: .zip

Change History (3)

@johnbillion
5 years ago

#1 @johnbillion
5 years ago

  • Keywords has-patch added

#2 @johnbillion
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Protocol-relative URLs are considered an anti-pattern these days, and set_url_scheme() could do without further complication.

Note: See TracTickets for help on using tickets.