From c0e02a6677701ba75998d93099b142c846a330ca Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 11 May 2010 14:25:10 +0000 Subject: [PATCH] No need to setup the nav menu items again. wp_get_nav_menu_items() handles it. see #12734 git-svn-id: https://develop.svn.wordpress.org/trunk@14558 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/nav-menu-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index fb27d8ed1d..4f3c2f1e7d 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -240,7 +240,7 @@ function wp_nav_menu( $args = array() ) { // Set up the $menu_item variables $sorted_menu_items = array(); foreach ( (array) $menu_items as $key => $menu_item ) - $sorted_menu_items[$menu_item->menu_order] = wp_setup_nav_menu_item( $menu_item ); + $sorted_menu_items[$menu_item->menu_order] = $menu_item; $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args );