Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#28632 closed enhancement (wontfix)

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

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


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 10 years ago.

Download all attachments as: .zip

Change History (3)

10 years ago

#1 @johnbillion
10 years ago

  • Keywords has-patch added

#2 @johnbillion
9 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.