Fix nav menu locations sorting. props jorbin, koopersmith with assists. see #13378.

git-svn-id: https://develop.svn.wordpress.org/trunk@14772 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-05-20 22:43:14 +00:00
parent 46f12c5a8b
commit fd3a2be9dd
4 changed files with 9 additions and 9 deletions

View File

@@ -1107,7 +1107,7 @@ case 'menu-locations-save':
if ( ! current_user_can( 'edit_theme_options' ) )
die('-1');
check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' );
if ( ! isset( $_POST['menu-locations' ] ) )
if ( ! isset( $_POST['menu-locations'] ) )
die('0');
set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] );
die('1');