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

View File

@@ -863,7 +863,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) {
* @param array $menu_data The unsanitized posted menu item data.
* @return array The database IDs of the items saved
*/
function wp_save_nav_menu_item( $menu_id = 0, $menu_data = array() ) {
function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) {
$menu_id = (int) $menu_id;
$items_saved = array();