Ensure we're saving valid menu locations. for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-07-22 07:00:22 +00:00
parent fd6cc7c779
commit 912058d2ac
1 changed files with 1 additions and 1 deletions

View File

@ -1144,7 +1144,7 @@ case 'menu-locations-save':
check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' );
if ( ! isset( $_POST['menu-locations'] ) )
die('0');
set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] );
set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_POST['menu-locations'] ) );
die('1');
break;
case 'meta-box-order':