_s: Hiding a comments link while a post is password-protected cleans things up; Props michaelfields; Closes #1215

git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@9452 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
Ian Stewart 2012-04-19 19:26:13 +00:00
parent 754f07dc7f
commit 1b0b0d1794
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@
<?php endif; // End if $tags_list ?> <?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?> <?php endif; // End if 'post' == get_post_type() ?>
<?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?> <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="sep"> | </span> <span class="sep"> | </span>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
<?php endif; ?> <?php endif; ?>