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:
parent
323342deec
commit
686cd3b696
@ -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
Block a user