equal
deleted
inserted
replaced
597 * @uses Walker_Nav_Menu to create HTML list content. |
597 * @uses Walker_Nav_Menu to create HTML list content. |
598 * @since 3.0.0 |
598 * @since 3.0.0 |
599 * |
599 * |
600 * @param array $items The menu items, sorted by each menu item's menu order. |
600 * @param array $items The menu items, sorted by each menu item's menu order. |
601 * @param int $depth Depth of the item in reference to parents. |
601 * @param int $depth Depth of the item in reference to parents. |
602 * @param stdClass $r An object containing wp_nav_menu() arguments. |
602 * @param stdClass $args An object containing wp_nav_menu() arguments. |
603 * @return string The HTML list content for the menu items. |
603 * @return string The HTML list content for the menu items. |
604 */ |
604 */ |
605 function walk_nav_menu_tree( $items, $depth, $r ) { |
605 function walk_nav_menu_tree( $items, $depth, $args ) { |
606 $walker = ( empty( $r->walker ) ) ? new Walker_Nav_Menu : $r->walker; |
606 $walker = ( empty( $args->walker ) ) ? new Walker_Nav_Menu : $args->walker; |
607 |
607 |
608 return $walker->walk( $items, $depth, $r ); |
608 return $walker->walk( $items, $depth, $args ); |
609 } |
609 } |
610 |
610 |
611 /** |
611 /** |
612 * Prevents a menu item ID from being used more than once. |
612 * Prevents a menu item ID from being used more than once. |
613 * |
613 * |