From 6ae74dfd0924f3e5d85e3f54a2d5e8c2da38f424 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@12408 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }