- Timestamp:
- 09/05/2004 07:25:31 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments.php
r1606 r1607 1 <?php 1 <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) : ?> 2 <p><?php _e('Enter your password to view comments.'); ?></p> 3 <?php return; endif; ?> 2 4 3 if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) 4 die ('Please do not load this page directly. Thanks!'); 5 6 if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) : 7 ?> 8 <p><?php _e('Enter your password to view comments.'); ?></p> 9 <?php 10 return; 11 endif; 12 ?> 13 14 <!-- You can start editing here. --> 15 16 <h2 id="comments"><?php comments_number(__("Comments"), __("1 Comment"), __("% Comments")); ?> 5 <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?> 17 6 <?php if ( comments_open() ) : ?> 18 7 <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a> … … 33 22 </ol> 34 23 35 <?php else : ?>24 <?php else : // If there are no comments yet ?> 36 25 <p><?php _e('No comments yet.'); ?></p> 37 26 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.