When splitting a shared 'nav_menu' term, ensure that nav items and theme locations are retained.
Props boonebgorges, dd32. Fixes #33187. Built from https://develop.svn.wordpress.org/trunk@33611 git-svn-id: http://core.svn.wordpress.org/trunk@33578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -315,6 +315,8 @@ function wp_update_nav_menu_object( $menu_id = 0, $menu_data = array() ) {
|
||||
if ( is_wp_error( $update_response ) )
|
||||
return $update_response;
|
||||
|
||||
$menu_id = (int) $update_response['term_id'];
|
||||
|
||||
/**
|
||||
* Fires after a navigation menu has been successfully updated.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user