WordPress.org

Make WordPress Core

Changeset 15430


Ignore:
Timestamp:
07/14/2010 03:13:01 PM (8 years ago)
Author:
nacin
Message:

Don't publish the first menu to the first menu location immediately on create. Bad UX. for 3.1.

File:
1 edited

Legend:

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

    r15361 r15430  
    291291                    $messages[] = '<div id="message" class="error"><p>' . $_nav_menu_selected_id->get_error_message() . '</p></div>';
    292292                } else {
    293                     if ( ( $_menu_locations = get_registered_nav_menus() ) && 1 == count( wp_get_nav_menus() ) )
    294                         set_theme_mod( 'nav_menu_locations', array( key( $_menu_locations ) => $_nav_menu_selected_id ) );
    295                     unset( $_menu_locations );
    296293                    $_menu_object = wp_get_nav_menu_object( $_nav_menu_selected_id );
    297294                    $nav_menu_selected_id = $_nav_menu_selected_id;
Note: See TracChangeset for help on using the changeset viewer.