Fire nopriv actions from post and ajax handlers when user is not logged in.

git-svn-id: https://develop.svn.wordpress.org/trunk@10720 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-03-05 21:43:35 +00:00
parent 3ec5d3c2ef
commit 125fa7591b
2 changed files with 7 additions and 3 deletions

View File

@@ -37,6 +37,9 @@ if ( ! is_user_logged_in() ) {
$x->send();
}
if ( !empty( $_POST['action']) )
do_action( 'wp_ajax_nopriv_' . $_POST['action'] );
die('-1');
}