WordPress.org

Make WordPress Core

Changeset 14722


Ignore:
Timestamp:
05/18/10 14:51:15 (5 years ago)
Author:
ryan
Message:

Use check_ajax_referer()

File:
1 edited

Legend:

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

    r14715 r14722  
    402402case 'delete-menu-item' : 
    403403    $menu_item_id = (int) $_POST['menu-item']; 
    404     check_admin_referer( 'delete-menu_item_' . $menu_item_id ); 
     404    check_ajax_referer( 'delete-menu_item_' . $menu_item_id ); 
    405405    if ( ! current_user_can( 'edit_theme_options' ) ) 
    406406        die('-1'); 
     
    824824        die('-1'); 
    825825 
    826     check_admin_referer( 'add-menu_item', 'menu-settings-column-nonce' ); 
     826    check_ajax_referer( 'add-menu_item', 'menu-settings-column-nonce' ); 
    827827 
    828828    require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; 
Note: See TracChangeset for help on using the changeset viewer.