WordPress.org

Make WordPress Core

Changeset 14558


Ignore:
Timestamp:
05/11/2010 02:25:10 PM (8 years ago)
Author:
ryan
Message:

No need to setup the nav menu items again. wp_get_nav_menu_items() handles it. see #12734

File:
1 edited

Legend:

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

    r14529 r14558  
    241241    $sorted_menu_items = array();
    242242    foreach ( (array) $menu_items as $key => $menu_item )
    243         $sorted_menu_items[$menu_item->menu_order] = wp_setup_nav_menu_item( $menu_item );
     243        $sorted_menu_items[$menu_item->menu_order] = $menu_item;
    244244
    245245    $items .= walk_nav_menu_tree( $sorted_menu_items, $args->depth, $args );
Note: See TracChangeset for help on using the changeset viewer.