[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
Thu Sep 29 21:28:02 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:  3.3
Component:  Formatting              |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+--------------------

Comment (by ryan):

 In IRC we discussed putting the protocols array in a
 wp_allowed_protocols() function and using the kses_allowed_protocols
 filter on it.  wp_kses() and esc_url() would use this function.  The
 function can make the array static and perform the filtering only once,
 avoiding thousands of apply_filters() calls.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18268#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list