It was a Wednesday. (?!) Hat tip: Lucas Larson
git-svn-id: http://svn.automattic.com/wordpress/trunk@2552 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2b53e2909
commit
8e076bda03
|
@ -3,7 +3,7 @@ require_once('../wp-config.php');
|
||||||
require_once(ABSPATH . 'wp-admin/admin-functions.php');
|
require_once(ABSPATH . 'wp-admin/admin-functions.php');
|
||||||
auth_redirect();
|
auth_redirect();
|
||||||
|
|
||||||
header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
|
header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
|
||||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|
|
@ -49,7 +49,7 @@ setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time()
|
||||||
setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH);
|
setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH);
|
||||||
setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH);
|
setcookie('comment_author_url_' . COOKIEHASH, stripslashes($comment_author_url), time() + 30000000, COOKIEPATH);
|
||||||
|
|
||||||
header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
|
header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
|
||||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|
|
@ -106,7 +106,7 @@ function auth_redirect() {
|
||||||
if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) &&
|
if ( (!empty($_COOKIE['wordpressuser_' . COOKIEHASH]) &&
|
||||||
!wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true)) ||
|
!wp_login($_COOKIE['wordpressuser_' . COOKIEHASH], $_COOKIE['wordpresspass_' . COOKIEHASH], true)) ||
|
||||||
(empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
|
(empty($_COOKIE['wordpressuser_' . COOKIEHASH])) ) {
|
||||||
header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
|
header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
|
||||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|
|
@ -24,7 +24,7 @@ case 'logout':
|
||||||
|
|
||||||
wp_clearcookie();
|
wp_clearcookie();
|
||||||
do_action('wp_logout');
|
do_action('wp_logout');
|
||||||
header('Expires: Mon, 11 Jan 1984 05:00:00 GMT');
|
header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
|
||||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||||
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
header('Cache-Control: no-cache, must-revalidate, max-age=0');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
|
|
Loading…
Reference in New Issue