Make WordPress Core

Changeset 2726 for trunk/wp-login.php


Ignore:
Timestamp:
07/18/2005 08:12:48 PM (20 years ago)
Author:
matt
Message:

More cookie catchups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r2712 r2726  
    166166        $redirect_to = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $_POST['redirect_to']);
    167167    } elseif ( !empty($_COOKIE) ) {
    168         if (! empty($_COOKIE['wordpressuser_' . COOKIEHASH]) )
    169             $user_login = $_COOKIE['wordpressuser_' . COOKIEHASH];
    170         if (! empty($_COOKIE['wordpresspass_' . COOKIEHASH]) ) {
    171             $user_pass = $_COOKIE['wordpresspass_' . COOKIEHASH];
     168        if (! empty($_COOKIE[USER_COOKIE]) )
     169            $user_login = $_COOKIE[USER_COOKIE];
     170        if (! empty($_COOKIE[PASS_COOKIE]) ) {
     171            $user_pass = $_COOKIE[PASS_COOKIE];
    172172            $using_cookie = true;
    173173        }
Note: See TracChangeset for help on using the changeset viewer.