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:
parent
c83e17c1ce
commit
4e4337f65a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue