From 36d7a55b5ed31e559a9b33a62efad97d75b4b80e Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 6 Jul 2009 16:55:07 +0000 Subject: [PATCH] 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 --- wp-admin/admin-ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index c657790b2c..0e2ba8e52c 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -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'); }