mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Don't check user settings if doing ajax.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75a6579d2b
commit
9629712581
@ -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…
x
Reference in New Issue
Block a user