mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user