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() )
|
||||
return;
|
||||
|
||||
if ( defined('DOING_AJAX') )
|
||||
return;
|
||||
|
||||
if ( ! $user = wp_get_current_user() )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue