[wp-trac] [WordPress Trac] #13051: admin_url() and site_url() shouldn't need esc_url()

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 19 18:56:44 UTC 2010


#13051: admin_url() and site_url() shouldn't need esc_url()
-------------------------+--------------------------------------------------
 Reporter:  alexkingorg  |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.0
Component:  Formatting   |     Version:  3.0
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
Changes (by scribu):

  * priority:  high => normal
  * type:  defect (bug) => enhancement
  * component:  Administration => Formatting
  * severity:  major => normal


Comment:

 -1, since esc_url() has multiple contexts.

 For example, plugins could use admin_url() to generate links that are
 meant to be stored in the db later, which would be escaped with
 esc_url_raw().

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


More information about the wp-trac mailing list