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
1b0b0d1794
commit
c82269d831
16
comments.php
16
comments.php
|
@ -11,19 +11,19 @@
|
||||||
* @since _s 1.0
|
* @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
|
<?php
|
||||||
/* Stop the rest of comments.php from being processed,
|
/*
|
||||||
* but don't kill the script entirely -- we still have
|
* If the current post is protected by a password and
|
||||||
* to fully load the template.
|
* the visitor has not yet entered the password we will
|
||||||
|
* return early without loading the comments.
|
||||||
*/
|
*/
|
||||||
|
if ( post_password_required() )
|
||||||
return;
|
return;
|
||||||
endif;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<div id="comments" class="comments-area">
|
||||||
|
|
||||||
<?php // You can start editing here -- including this comment! ?>
|
<?php // You can start editing here -- including this comment! ?>
|
||||||
|
|
||||||
<?php if ( have_comments() ) : ?>
|
<?php if ( have_comments() ) : ?>
|
||||||
|
|
Reference in New Issue