From 60a2805b0d313564fae1e9f1f89ae9ce063d16c0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 15 Dec 2009 19:57:20 +0000 Subject: [PATCH] Don't fall back to logged in cookie if in the admin. git-svn-id: https://develop.svn.wordpress.org/trunk@12408 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 9a88d30873..0946f8f238 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -99,7 +99,7 @@ function get_currentuserinfo() { return; if ( ! $user = wp_validate_auth_cookie() ) { - if ( empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) { + if ( is_admin() || empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) { wp_set_current_user(0); return false; }