WordPress.org

Make WordPress Core

Changeset 14833


Ignore:
Timestamp:
05/24/10 11:15:31 (5 years ago)
Author:
nacin
Message:

Don't override menu locations on a non-js save. see #13378.

File:
1 edited

Legend:

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

    r14831 r14833  
    275275 
    276276        // Update menu theme locations 
    277         set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] ); 
     277        if ( isset( $_POST['menu-locations'] ) ) 
     278            set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] ); 
    278279 
    279280        // Add Menu 
Note: See TracChangeset for help on using the changeset viewer.