summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2019-01-01 22:29:50 -0500
committerAnthony G. Basile <blueness@gentoo.org>2019-01-01 22:29:50 -0500
commit906293ba64e50ebc824586cf9a171aec7ab57c43 (patch)
tree4c515c4d2396c787b8e216904a9bd9d4696efdd2 /themes/twentysixteen/comments.php
parentUpdate twentyfifteen 2.2 (diff)
downloadblogs-gentoo-906293ba64e50ebc824586cf9a171aec7ab57c43.tar.gz
blogs-gentoo-906293ba64e50ebc824586cf9a171aec7ab57c43.tar.bz2
blogs-gentoo-906293ba64e50ebc824586cf9a171aec7ab57c43.zip
Update twentysixteen 1.7
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'themes/twentysixteen/comments.php')
-rw-r--r--themes/twentysixteen/comments.php60
1 files changed, 28 insertions, 32 deletions
diff --git a/themes/twentysixteen/comments.php b/themes/twentysixteen/comments.php
index 95dd5651..7ff5b32d 100644
--- a/themes/twentysixteen/comments.php
+++ b/themes/twentysixteen/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 &ldquo;%s&rdquo;', 'comments title', 'twentysixteen' ), get_the_title() );
- } else {
- printf(
- /* translators: 1: number of comments, 2: post title */
- _nx(
- '%1$s thought on &ldquo;%2$s&rdquo;',
- '%1$s thoughts on &ldquo;%2$s&rdquo;',
- $comments_number,
- 'comments title',
- 'twentysixteen'
- ),
- number_format_i18n( $comments_number ),
- get_the_title()
- );
- }
+ if ( '1' === $comments_number ) {
+ /* translators: %s: post title */
+ printf( _x( 'One thought on &ldquo;%s&rdquo;', 'comments title', 'twentysixteen' ), get_the_title() );
+ } else {
+ printf(
+ /* translators: 1: number of comments, 2: post title */
+ _nx(
+ '%1$s thought on &ldquo;%2$s&rdquo;',
+ '%1$s thoughts on &ldquo;%2$s&rdquo;',
+ $comments_number,
+ 'comments title',
+ 'twentysixteen'
+ ),
+ 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' => 42,
- )
- );
+ wp_list_comments( array(
+ 'style' => 'ol',
+ 'short_ping' => true,
+ 'avatar_size' => 42,
+ ) );
?>
</ol><!-- .comment-list -->
@@ -66,18 +64,16 @@ 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.', 'twentysixteen' ); ?></p>
+ <p class="no-comments"><?php _e( 'Comments are closed.', 'twentysixteen' ); ?></p>
<?php endif; ?>
<?php
- comment_form(
- array(
- 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">',
- 'title_reply_after' => '</h2>',
- )
- );
+ comment_form( array(
+ 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">',
+ 'title_reply_after' => '</h2>',
+ ) );
?>
</div><!-- .comments-area -->