Make WordPress Core

Changeset 20857


Ignore:
Timestamp:
05/23/2012 08:46:38 PM (12 years ago)
Author:
ryan
Message:

Don't pass action ID to the ajax actions to avoid possible back compat problems. Props sivel. fixes #20699

File:
1 edited

Legend:

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

    r20288 r20857  
    6464
    6565if ( is_user_logged_in() )
    66     do_action( 'wp_ajax_' . $_REQUEST['action'], $_REQUEST['action'] ); // Authenticated actions
     66    do_action( 'wp_ajax_' . $_REQUEST['action'] ); // Authenticated actions
    6767else
    68     do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'], $_REQUEST['action'] ); // Non-admin actions
     68    do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] ); // Non-admin actions
    6969
    7070// Default status
Note: See TracChangeset for help on using the changeset viewer.