mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 06:40:25 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user