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:
parent
7734a07cb2
commit
ecb2ff033a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue