Show correct nav menu title on first pageload after change. props filosofo, fixes #13142.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e152503cb
commit
4374cee7cd
|
@ -219,7 +219,7 @@ switch ( $action ) {
|
||||||
$_menu_object = wp_get_nav_menu_object( $nav_menu_selected_id );
|
$_menu_object = wp_get_nav_menu_object( $nav_menu_selected_id );
|
||||||
|
|
||||||
if ( ! is_wp_error( $_menu_object ) ) {
|
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;
|
$nav_menu_selected_title = $_menu_object->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue