[wp-trac] [WordPress Trac] #56108: Wrong escaping in admin menu walker file

WordPress Trac noreply at wordpress.org
Tue Jul 5 08:05:08 UTC 2022


#56108: Wrong escaping in admin menu walker file
------------------------------+-----------------------
 Reporter:  aniketpatel       |       Owner:  audrasjb
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.1
Component:  Menus             |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------
Changes (by audrasjb):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53654" 53654]:
 {{{
 #!CommitTicketReference repository="" revision="53654"
 Menus: Use more appropriate escaping functions in class
 `Walker_Nav_Menu_Edit`.

 This changeset replaces `esc_attr` escaping function with `esc_url` as it
 is more appropriate in the context of a link's `href` attribute.

 Props audrasjb, aniketpatel.
 Fixes #56108.
 }}}

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


More information about the wp-trac mailing list