Don't check user settings if doing ajax.
git-svn-id: https://develop.svn.wordpress.org/trunk@10056 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f19167fbca
commit
d0560d1644
@ -668,6 +668,9 @@ function wp_user_settings() {
|
|||||||
if ( ! is_admin() )
|
if ( ! is_admin() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ( defined('DOING_AJAX') )
|
||||||
|
return;
|
||||||
|
|
||||||
if ( ! $user = wp_get_current_user() )
|
if ( ! $user = wp_get_current_user() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user