[wp-trac] [WordPress Trac] #19064: Pass $depth argument to nav_menu_css_class filter

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 26 22:31:15 UTC 2011

#19064: Pass $depth argument to nav_menu_css_class filter
 Reporter:  cyclometh    |      Owner:  cyclometh
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Menus        |    Version:  3.2.1
 Severity:  minor        |   Keywords:  has-patch
 function start_el() in nav-menu-template.php receives a $depth argument,
 representing the nesting level of the current menu item, but does not pass
 it to the nav_menu_css_class filter.

 Passing the $depth argument allows one to create classes on a menu item
 such as menu-item-depth-1, menu-item-depth-2, etc by hooking the
 nav_menu_css_class filter.

Ticket URL: <http://core.trac.wordpress.org/ticket/19064>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list