Add $depth as a parameter in the nav_menu_item_args filter.

Fixes #29417


git-svn-id: https://develop.svn.wordpress.org/trunk@34507 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-09-24 17:58:20 +00:00
parent d7a59c4661
commit 133993389e

View File

@ -92,8 +92,9 @@ class Walker_Nav_Menu extends Walker {
* *
* @param array $args An array of arguments. * @param array $args An array of arguments.
* @param object $item Menu item data object. * @param object $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
*/ */
$args = apply_filters( 'nav_menu_item_args', $args, $item ); $args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );
/** /**
* Filter the CSS class(es) applied to a menu item's list item element. * Filter the CSS class(es) applied to a menu item's list item element.