Add `$depth` as a parameter in the `nav_menu_item_args` filter.

Fixes #29417

Built from https://develop.svn.wordpress.org/trunk@34507


git-svn-id: http://core.svn.wordpress.org/trunk@34471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2015-09-24 17:59:24 +00:00
parent 4671e03766
commit cb740147be
2 changed files with 5 additions and 4 deletions

View File

@ -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.

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34506';
$wp_version = '4.4-alpha-34507';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.