Fix comment cookies.
git-svn-id: https://develop.svn.wordpress.org/trunk@2002 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
10d81f7d37
commit
173eb4a098
|
@ -32,9 +32,9 @@ $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_emai
|
||||||
|
|
||||||
wp_new_comment($commentdata);
|
wp_new_comment($commentdata);
|
||||||
|
|
||||||
setcookie('comment_author_' . COOKIEHASH, stripslashes($author), time() + 30000000, COOKIEPATH);
|
setcookie('comment_author_' . COOKIEHASH, stripslashes($comment_author), time() + 30000000, COOKIEPATH);
|
||||||
setcookie('comment_author_email_' . COOKIEHASH, stripslashes($email), time() + 30000000, COOKIEPATH);
|
setcookie('comment_author_email_' . COOKIEHASH, stripslashes($comment_author_email), time() + 30000000, COOKIEPATH);
|
||||||
setcookie('comment_author_url_' . COOKIEHASH, stripslashes($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: Mon, 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');
|
||||||
|
|
Loading…
Reference in New Issue