honey, your cookies are delicious, but not when they're empty
git-svn-id: https://develop.svn.wordpress.org/trunk@1807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
df198e98cc
commit
38f8395c4a
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
require_once('../wp-config.php');
|
||||
|
||||
if ( !empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true) ) {
|
||||
if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true))
|
||||
|| (empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
|
||||
header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
|
@ -11,4 +12,4 @@ if ( !empty($_COOKIE['wordpressuser_' . COOKIEHASH]) && !wp_login($_COOKIE['word
|
|||
exit();
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue