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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-05-12 20:47:08 +00:00
parent 7734a07cb2
commit ecb2ff033a
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