From 133993389e7a911e512ba93f15814898ac2664ff Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 24 Sep 2015 17:58:20 +0000 Subject: [PATCH] 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 --- src/wp-includes/nav-menu-template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/nav-menu-template.php b/src/wp-includes/nav-menu-template.php index fd5fbd604a..81a2781c76 100644 --- a/src/wp-includes/nav-menu-template.php +++ b/src/wp-includes/nav-menu-template.php @@ -90,10 +90,11 @@ class Walker_Nav_Menu extends Walker { * * @since 4.4.0 * - * @param array $args An array of arguments. - * @param object $item Menu item data object. + * @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.