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:
ryan 2008-12-05 05:10:05 +00:00
parent 75a6579d2b
commit 9629712581
1 changed files with 3 additions and 0 deletions

View File

@ -668,6 +668,9 @@ function wp_user_settings() {
if ( ! is_admin() )
return;
if ( defined('DOING_AJAX') )
return;
if ( ! $user = wp_get_current_user() )
return;