Make WordPress Core

Changeset 1807


Ignore:
Timestamp:
10/17/2004 12:42:18 PM (20 years ago)
Author:
michelvaldrighi
Message:

honey, your cookies are delicious, but not when they're empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/auth.php

    r1774 r1807  
    22require_once('../wp-config.php');
    33
    4 if ( !empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true) ) {
     4if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true))
     5    || (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
    56    header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
    67    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
Note: See TracChangeset for help on using the changeset viewer.