Slight cleanup

git-svn-id: https://develop.svn.wordpress.org/trunk@1607 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-09-05 07:25:31 +00:00
parent 460e139bcb
commit a09cbbbc85
1 changed files with 4 additions and 15 deletions

View File

@ -1,19 +1,8 @@
<?php
if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) :
?>
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php
return;
endif;
?>
<?php return; endif; ?>
<!-- You can start editing here. -->
<h2 id="comments"><?php comments_number(__("Comments"), __("1 Comment"), __("% Comments")); ?>
<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
<?php endif; ?>
@ -32,7 +21,7 @@ endif;
</ol>
<?php else : ?>
<?php else : // If there are no comments yet ?>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>