WordPress.org

Make WordPress Core

Changeset 15454


Ignore:
Timestamp:
07/22/2010 07:00:22 AM (8 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r15372 r15454  
    11451145    if ( ! isset( $_POST['menu-locations'] ) )
    11461146        die('0');
    1147     set_theme_mod( 'nav_menu_locations', $_POST['menu-locations'] );
     1147    set_theme_mod( 'nav_menu_locations', array_map( 'absint', $_POST['menu-locations'] ) );
    11481148    die('1');
    11491149    break;
Note: See TracChangeset for help on using the changeset viewer.