From a4915961631f2f0958c50052b3a99a5fcade8685 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@14558 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 fb27d8ed1..4f3c2f1e7 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 );