Fire admin_init action in admin-ajax. Props DD32. fixes #8574
git-svn-id: https://develop.svn.wordpress.org/trunk@10622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e0c713ea8
commit
741e981d8a
@ -18,6 +18,8 @@ require_once('../wp-load.php');
|
||||
require_once('includes/admin.php');
|
||||
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
||||
|
||||
do_action('admin_init');
|
||||
|
||||
if ( ! is_user_logged_in() ) {
|
||||
|
||||
if ( $_POST['action'] == 'autosave' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user