mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
change wp_ajax_nopriv in admin-ajax.php to support GET as well as POST. Props dd32. fixes #10345
git-svn-id: http://svn.automattic.com/wordpress/trunk@11694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df5809a0cc
commit
36d7a55b5e
@ -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