From d0560d164406467779534383a46e417de4464436 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 5 Dec 2008 05:10:05 +0000 Subject: [PATCH] Don't check user settings if doing ajax. git-svn-id: https://develop.svn.wordpress.org/trunk@10056 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;