[wp-trac] [WordPress Trac] #30952: customize.php links in the admin menu are not ecaped

WordPress Trac noreply at wordpress.org
Thu Jan 8 18:55:20 UTC 2015


#30952: customize.php links in the admin menu are not ecaped
-------------------------------------+-----------------------------
 Reporter:  avryl                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  4.2
Component:  Customize                |     Version:  4.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by avryl):

 @ocean90 Oops, sorry about the `urlencode()`.

 @westonruter That works too. :)

 You still need to use an array for `add_query_arg()` though, or escape it
 manually.
 `esc_url( add_query_arg( 'a[a]', 'a', '/' ) ) === '/?aa=a'`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30952#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list