forked from mirror/_s
_s: Remove password-protected message from comments.php. fixes #1217
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9480 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
parent
a5e58b8ac5
commit
edf08c67b5
16
comments.php
16
comments.php
|
@ -11,19 +11,19 @@
|
|||
* @since _s 1.0
|
||||
*/
|
||||
?>
|
||||
<div id="comments" class="comments-area">
|
||||
<?php if ( post_password_required() ) : ?>
|
||||
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', '_s' ); ?></p>
|
||||
</div><!-- #comments .comments-area -->
|
||||
|
||||
<?php
|
||||
/* Stop the rest of comments.php from being processed,
|
||||
* but don't kill the script entirely -- we still have
|
||||
* to fully load the template.
|
||||
/*
|
||||
* If the current post is protected by a password and
|
||||
* the visitor has not yet entered the password we will
|
||||
* return early without loading the comments.
|
||||
*/
|
||||
if ( post_password_required() )
|
||||
return;
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div id="comments" class="comments-area">
|
||||
|
||||
<?php // You can start editing here -- including this comment! ?>
|
||||
|
||||
<?php if ( have_comments() ) : ?>
|
||||
|
|
Reference in New Issue