diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:28:29 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:28:29 -0500 |
commit | 803ee77b72af622394ef14eff997102c57b0ddf8 (patch) | |
tree | b7195d772cc97b221a152e28089885c9a5405eae /themes/twentyfifteen/comments.php | |
parent | Update akismet 4.1 (diff) | |
download | blogs-gentoo-803ee77b72af622394ef14eff997102c57b0ddf8.tar.gz blogs-gentoo-803ee77b72af622394ef14eff997102c57b0ddf8.tar.bz2 blogs-gentoo-803ee77b72af622394ef14eff997102c57b0ddf8.zip |
Update twentyfifteen 2.2
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'themes/twentyfifteen/comments.php')
-rw-r--r-- | themes/twentyfifteen/comments.php | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/themes/twentyfifteen/comments.php b/themes/twentyfifteen/comments.php index 1c1b5a49..6b97ec39 100644 --- a/themes/twentyfifteen/comments.php +++ b/themes/twentyfifteen/comments.php @@ -26,23 +26,23 @@ if ( post_password_required() ) { <h2 class="comments-title"> <?php $comments_number = get_comments_number(); - if ( '1' === $comments_number ) { - /* translators: %s: post title */ - printf( _x( 'One thought on “%s”', 'comments title', 'twentyfifteen' ), get_the_title() ); - } else { - printf( - /* translators: 1: number of comments, 2: post title */ - _nx( - '%1$s thought on “%2$s”', - '%1$s thoughts on “%2$s”', - $comments_number, - 'comments title', - 'twentyfifteen' - ), - number_format_i18n( $comments_number ), - get_the_title() - ); - } + if ( '1' === $comments_number ) { + /* translators: %s: post title */ + printf( _x( 'One thought on “%s”', 'comments title', 'twentyfifteen' ), get_the_title() ); + } else { + printf( + /* translators: 1: number of comments, 2: post title */ + _nx( + '%1$s thought on “%2$s”', + '%1$s thoughts on “%2$s”', + $comments_number, + 'comments title', + 'twentyfifteen' + ), + number_format_i18n( $comments_number ), + get_the_title() + ); + } ?> </h2> @@ -50,13 +50,11 @@ if ( post_password_required() ) { <ol class="comment-list"> <?php - wp_list_comments( - array( - 'style' => 'ol', - 'short_ping' => true, - 'avatar_size' => 56, - ) - ); + wp_list_comments( array( + 'style' => 'ol', + 'short_ping' => true, + 'avatar_size' => 56, + ) ); ?> </ol><!-- .comment-list --> @@ -66,9 +64,9 @@ if ( post_password_required() ) { <?php // If comments are closed and there are comments, let's leave a little note, shall we? - if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : + if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> - <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> + <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> <?php endif; ?> <?php comment_form(); ?> |