WordPress.org

Make WordPress Core

Changeset 14266


Ignore:
Timestamp:
04/28/2010 02:24:39 AM (8 years ago)
Author:
nacin
Message:

Show correct nav menu title on first pageload after change. props filosofo, fixes #13142.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r14263 r14266  
    220220
    221221            if ( ! is_wp_error( $_menu_object ) ) {
    222                 wp_update_nav_menu_object( $nav_menu_selected_id, array( 'menu-name' => $_POST['menu-name'] ) );
     222                $_menu_object = wp_get_nav_menu_object( wp_update_nav_menu_object( $nav_menu_selected_id, array( 'menu-name' => $_POST['menu-name'] ) ) );
    223223                $nav_menu_selected_title = $_menu_object->name;
    224224            }
Note: See TracChangeset for help on using the changeset viewer.