forked from mirror/_s
_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:
parent
754f07dc7f
commit
1b0b0d1794
|
@ -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; ?>
|
||||||
|
|
Reference in New Issue