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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-24 11:15:31 +00:00
parent c83e17c1ce
commit 4e4337f65a
1 changed files with 2 additions and 1 deletions

View File

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