[wp-trac] [WordPress Trac] #29417: More semantic filter for item labels in Walker_Nav_Menu

WordPress Trac noreply at wordpress.org
Mon Sep 29 11:17:26 UTC 2014


#29417: More semantic filter for item labels in Walker_Nav_Menu
--------------------------------------+-----------------------------
 Reporter:  danielbachhuber           |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Menus                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by bjornjohansen):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch


Comment:

 I added a filter, nav_menu_item_args, on the entire $args object so all
 the before/after/link_before/link_after can be modified, covering your use
 case. I added it before any use of $args, in case one might want to modify
 it for the other uses in the function as well.

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


More information about the wp-trac mailing list