Make WordPress Core

Changeset 15453


Ignore:
Timestamp:
07/22/2010 06:59:39 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/admin-ajax.php

    r15373 r15453  
    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.