Make WordPress Core

Changeset 13732


Ignore:
Timestamp:
03/17/2010 04:19:58 PM (15 years ago)
Author:
markjaquith
Message:

Separate update/create menu logic so new menus have name created properly. see #11817

File:
1 edited

Legend:

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

    r13730 r13732  
    8787                unset($add_nav_menu);
    8888            }
    89         }
    90        
    91         // Update menu name
    92         if ( isset($_POST['menu-name']) ) {
     89        } elseif ( isset($_POST['menu-name']) ) {
    9390            $old_nav_menu = get_term( $nav_menu_selected_id, 'nav_menu', ARRAY_A );
    9491            $args = array( 'name' => $_POST['menu-name'], 'slug' => null, 'description' => $old_nav_menu['description'], 'parent' => $old_nav_menu['parent'], );
Note: See TracChangeset for help on using the changeset viewer.