mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Ensure we're saving valid menu locations. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user