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

git-svn-id: https://develop.svn.wordpress.org/trunk@14833 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-24 11:15:31 +00:00
parent b30c9c252e
commit 1795c0157a
1 changed files with 2 additions and 1 deletions

View File

@ -274,7 +274,8 @@ switch ( $action ) {
check_admin_referer( 'update-nav_menu', 'update-nav-menu-nonce' );
// Update menu theme locations
set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] );
if ( isset( $_POST['menu-locations'] ) )
set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] );
// Add Menu
if ( 0 == $nav_menu_selected_id ) {