[wp-trac] [WordPress Trac] #12300: Allow filtration of image src URLs in wp-admin/

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 20 20:38:09 UTC 2010


#12300: Allow filtration of image src URLs in wp-admin/
----------------------------+-----------------------------------------------
 Reporter:  mdawaffe        |       Owner:                  
     Type:  enhancement     |      Status:  new             
 Priority:  normal          |   Milestone:  3.0             
Component:  Administration  |     Version:  3.0             
 Severity:  normal          |    Keywords:  has-patch commit
----------------------------+-----------------------------------------------

Comment(by nacin):

 It's kind of confusing, yeah. esc_url_raw() used to be sanitize_url()
 which was deprecated. clean_url() wasn't deprecated in favor of esc_url()
 because both esc_url_raw() and esc_url() use it.

 We could merge clean_url() into esc_url(), giving the latter the
 additional $context property and have esc_url_raw() call esc_url()
 instead, that way we get rid of the alias.

 Though it doesn't make much of a difference, the less validation and
 sanitization functions we have, the less confused plugin authors are, and
 the more secure the code they write will be.

 I'll check this in later.

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


More information about the wp-trac mailing list