change wp_ajax_nopriv in admin-ajax.php to support GET as well as POST. Props dd32. fixes #10345
git-svn-id: https://develop.svn.wordpress.org/trunk@11694 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7af7514cf0
commit
f3c198ce14
@ -37,8 +37,8 @@ if ( ! is_user_logged_in() ) {
|
||||
$x->send();
|
||||
}
|
||||
|
||||
if ( !empty( $_POST['action']) )
|
||||
do_action( 'wp_ajax_nopriv_' . $_POST['action'] );
|
||||
if ( !empty( $_REQUEST['action']) )
|
||||
do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] );
|
||||
|
||||
die('-1');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user