mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user