Make WordPress Core

Changeset 34507


Ignore:
Timestamp:
09/24/2015 05:58:20 PM (9 years ago)
Author:
johnbillion
Message:

Add $depth as a parameter in the nav_menu_item_args filter.

Fixes #29417

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu-template.php

    r34481 r34507  
    9191         * @since 4.4.0
    9292         *
    93          * @param array  $args An array of arguments.
    94          * @param object $item Menu item data object.
     93         * @param array  $args  An array of arguments.
     94         * @param object $item  Menu item data object.
     95         * @param int    $depth Depth of menu item. Used for padding.
    9596         */
    96         $args = apply_filters( 'nav_menu_item_args', $args, $item );
     97        $args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );
    9798
    9899        /**
Note: See TracChangeset for help on using the changeset viewer.