[wp-trac] [WordPress Trac] #18268: Add tel, sms, callto and fax protocols to esc_url() and make the array filterable
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 27 13:32:09 UTC 2011
#18268: Add tel, sms, callto and fax protocols to esc_url() and make the array
filterable
--------------------------+------------------------------------
Reporter: sanchothefat | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.2.1
Severity: normal | Keywords: has-patch dev-feedback
--------------------------+------------------------------------
There are loads of protocols that people may need to support.
Currently esc_url() obliterates urls that don't match the allowed list
_before_ it reaches the 'clean_url' filter.
This means I can't put tel: or callto: links in a menu via the admin.
The attached patch adds in some more useful protocols and makes the array
filterable to cover all the protocols listed on
http://en.wikipedia.org/wiki/URI_scheme
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18268>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list