Changeset 4495 for trunk/wp-content/themes/default/comments.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/default/comments.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/comments.php
r3517 r4495 3 3 die ('Please do not load this page directly. Thanks!'); 4 4 5 if (!empty($post->post_password)) { // if there's a password6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie7 ?>5 if (!empty($post->post_password)) { // if there's a password 6 if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie 7 ?> 8 8 9 <p class="nocomments">This post is password protected. Enter the password to view comments.<p>9 <p class="nocomments">This post is password protected. Enter the password to view comments.<p> 10 10 11 <?php12 return;13 }14 }11 <?php 12 return; 13 } 14 } 15 15 16 /* This variable is for alternating comment background */17 $oddcomment = 'alt';16 /* This variable is for alternating comment background */ 17 $oddcomment = 'alt'; 18 18 ?> 19 19 … … 21 21 22 22 <?php if ($comments) : ?> 23 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> 23 <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> 24 24 25 25 <ol class="commentlist"> … … 51 51 <?php else : // this is displayed if there are no comments so far ?> 52 52 53 <?php if ('open' == $post->comment_status) : ?> 53 <?php if ('open' == $post->comment_status) : ?> 54 54 <!-- If comments are open, but there are no comments. --> 55 55
Note: See TracChangeset
for help on using the changeset viewer.