mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +00:00
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:
@@ -37,6 +37,9 @@ if ( ! is_user_logged_in() ) {
|
||||
$x->send();
|
||||
}
|
||||
|
||||
if ( !empty( $_POST['action']) )
|
||||
do_action( 'wp_ajax_nopriv_' . $_POST['action'] );
|
||||
|
||||
die('-1');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user