From 15c1631eac4550b806cf6837c1ac59c3ec48a719 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 22 Jul 2010 06:59:39 +0000 Subject: [PATCH] Ensure we're saving valid menu locations. for 3.0. git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@15453 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index ab84aac76a..44cdf64dbf 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -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':