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:
ryan 2009-07-06 16:55:07 +00:00
parent df5809a0cc
commit 36d7a55b5e
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}