Opened 9 years ago
Closed 8 years ago
#18469 closed defect (bug) (invalid)
esc_url prevents embedding tel: links in custom menus
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.2.1 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
When adding a tel: URL to a custom menu via custom links the URL is removed by esc_url as it is not a whitelisted protocol. (line 2267 in wp-includes/formatting.php).
I also noticed git: wasn't included in the whitelist array so I added it for good measure.
Attachments (1)
Change History (5)
#1
@
9 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
#2
@
9 years ago
- Cc joachim.kudish@… added
Should we not add all of the valid protocols then? http://en.wikipedia.org/wiki/URI_scheme
Note: See
TracTickets for help on using
tickets.
Adds tel and git to protocol whitelist array