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:
parent
4671e03766
commit
cb740147be
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue