Changeset 14738
- Timestamp:
- 05/19/2010 05:59:43 AM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r14731 r14738 830 830 $menu_id = (int) $_POST['menu']; 831 831 if ( isset( $_POST['menu-item'] ) ) { 832 $item_ids = wp_save_nav_menu_item ( $menu_id, $_POST['menu-item'] );832 $item_ids = wp_save_nav_menu_items( $menu_id, $_POST['menu-item'] ); 833 833 if ( is_wp_error( $item_ids ) ) 834 834 die('-1'); -
trunk/wp-admin/includes/nav-menu.php
r14715 r14738 864 864 * @return array The database IDs of the items saved 865 865 */ 866 function wp_save_nav_menu_item ( $menu_id = 0, $menu_data = array() ) {866 function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) { 867 867 $menu_id = (int) $menu_id; 868 868 $items_saved = array(); -
trunk/wp-admin/nav-menus.php
r14714 r14738 55 55 set_theme_mod( 'nav_menu_locations', $_REQUEST['menu-locations'] ); 56 56 elseif ( isset( $_REQUEST['menu-item'] ) ) 57 wp_save_nav_menu_item ( $nav_menu_selected_id, $_REQUEST['menu-item'] );57 wp_save_nav_menu_items( $nav_menu_selected_id, $_REQUEST['menu-item'] ); 58 58 break; 59 59 case 'move-down-menu-item' :
Note: See TracChangeset
for help on using the changeset viewer.