From 962971258161d5112560c28d188d190e93ae21c0 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 5 Dec 2008 05:10:05 +0000 Subject: [PATCH] Don't check user settings if doing ajax. git-svn-id: http://svn.automattic.com/wordpress/trunk@10056 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 8ef3c4ac9a..3651cd6ac8 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -668,6 +668,9 @@ function wp_user_settings() { if ( ! is_admin() ) return; + if ( defined('DOING_AJAX') ) + return; + if ( ! $user = wp_get_current_user() ) return;