Rename wp_save_nav_menu_item to wp_save_nav_menu_items. Though it could handle one item, it expects a mess of post data containing an array of menu items. see #13447.

git-svn-id: https://develop.svn.wordpress.org/trunk@14738 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-05-19 05:59:43 +00:00
parent 25d5809ba3
commit dcfc4351c2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ switch ( $action ) {
if ( isset( $_REQUEST['nav-menu-locations'] ) )
set_theme_mod( 'nav_menu_locations', $_REQUEST['menu-locations'] );
elseif ( isset( $_REQUEST['menu-item'] ) )
wp_save_nav_menu_item( $nav_menu_selected_id, $_REQUEST['menu-item'] );
wp_save_nav_menu_items( $nav_menu_selected_id, $_REQUEST['menu-item'] );
break;
case 'move-down-menu-item' :
// moving down a menu item is the same as moving up the next in order