From 105de33875bf90b4eb97d5b10abb79cae49a01fd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 28 Apr 2010 02:24:39 +0000 Subject: [PATCH] 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 --- wp-admin/nav-menus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 4cfba06786..a0bab00cbf 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -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; }