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:
parent
d7a59c4661
commit
133993389e
@ -92,8 +92,9 @@ class Walker_Nav_Menu extends Walker {
|
||||
*
|
||||
* @param array $args An array of arguments.
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user