mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Template cookie prob - http://mosquito.wordpress.org/view.php?id=805
git-svn-id: https://develop.svn.wordpress.org/trunk@2260 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2703339d74
commit
635b80fe4b
@ -3,7 +3,7 @@
|
||||
die ('Please do not load this page directly. Thanks!');
|
||||
|
||||
if (!empty($post->post_password)) { // if there's a password
|
||||
if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie
|
||||
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
|
||||
?>
|
||||
|
||||
<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user