Changeset 30358 for trunk/src/wp-includes/nav-menu-template.php
- Timestamp:
- 11/16/2014 07:36:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu-template.php
r30032 r30358 95 95 * @param object $item The current menu item. 96 96 * @param array $args An array of wp_nav_menu() arguments. 97 * @param int $depth Depth of menu item. Used for padding. 97 98 */ 98 $class_names = join( ' ', (array) apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );99 $class_names = join( ' ', (array) apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) ); 99 100 $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; 100 101 … … 109 110 * @param object $item The current menu item. 110 111 * @param array $args An array of wp_nav_menu() arguments. 112 * @param int $depth Depth of menu item. Used for padding. 111 113 */ 112 $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );114 $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args, $depth ); 113 115 $id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; 114 116 … … 136 138 * @type string $href The href attribute. 137 139 * } 138 * @param object $item The current menu item. 139 * @param array $args An array of wp_nav_menu() arguments. 140 * @param object $item The current menu item. 141 * @param array $args An array of wp_nav_menu() arguments. 142 * @param int $depth Depth of menu item. Used for padding. 140 143 */ 141 $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args );144 $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); 142 145 143 146 $attributes = '';
Note: See TracChangeset
for help on using the changeset viewer.