Show correct nav menu title on first pageload after change. props filosofo, fixes #13142.
git-svn-id: https://develop.svn.wordpress.org/trunk@14266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3114dfddce
commit
105de33875
@ -219,7 +219,7 @@ switch ( $action ) {
|
||||
$_menu_object = wp_get_nav_menu_object( $nav_menu_selected_id );
|
||||
|
||||
if ( ! is_wp_error( $_menu_object ) ) {
|
||||
wp_update_nav_menu_object( $nav_menu_selected_id, array( 'menu-name' => $_POST['menu-name'] ) );
|
||||
$_menu_object = wp_get_nav_menu_object( wp_update_nav_menu_object( $nav_menu_selected_id, array( 'menu-name' => $_POST['menu-name'] ) ) );
|
||||
$nav_menu_selected_title = $_menu_object->name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user