Pass menu id instead of name. Allows menus with commas in the name. Props filosofo. fixes #13368

git-svn-id: https://develop.svn.wordpress.org/trunk@14586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-05-12 20:47:08 +00:00
parent 323342deec
commit 686cd3b696
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item
'post_parent' => $original_parent,
'post_title' => $args['menu-item-title'],
'post_type' => 'nav_menu_item',
'tax_input' => array( 'nav_menu' => $menu->name ),
'tax_input' => array( 'nav_menu' => array( intval( $menu->term_id ) ) ),
);
// New menu item