Make WordPress Core

Changeset 12408


Ignore:
Timestamp:
12/15/2009 07:57:20 PM (15 years ago)
Author:
ryan
Message:

Don't fall back to logged in cookie if in the admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r12402 r12408  
    100100
    101101    if ( ! $user = wp_validate_auth_cookie() ) {
    102          if ( empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) {
     102         if ( is_admin() || empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) {
    103103            wp_set_current_user(0);
    104104            return false;
Note: See TracChangeset for help on using the changeset viewer.