Slight cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@1607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c3052df5f
commit
ce7ade2a6c
|
@ -1,19 +1,8 @@
|
||||||
<?php
|
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) : ?>
|
||||||
|
|
||||||
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) :
|
|
||||||
?>
|
|
||||||
<p><?php _e('Enter your password to view comments.'); ?></p>
|
<p><?php _e('Enter your password to view comments.'); ?></p>
|
||||||
<?php
|
<?php return; endif; ?>
|
||||||
return;
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<!-- You can start editing here. -->
|
<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
|
||||||
|
|
||||||
<h2 id="comments"><?php comments_number(__("Comments"), __("1 Comment"), __("% Comments")); ?>
|
|
||||||
<?php if ( comments_open() ) : ?>
|
<?php if ( comments_open() ) : ?>
|
||||||
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
|
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -32,7 +21,7 @@ endif;
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : // If there are no comments yet ?>
|
||||||
<p><?php _e('No comments yet.'); ?></p>
|
<p><?php _e('No comments yet.'); ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue