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
22
comments.php
22
comments.php
|
@ -11,18 +11,18 @@
|
|||
* @since _s 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
* 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;
|
||||
?>
|
||||
|
||||
<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.
|
||||
*/
|
||||
return;
|
||||
endif;
|
||||
?>
|
||||
|
||||
<?php // You can start editing here -- including this comment! ?>
|
||||
|
||||
|
|
Reference in New Issue