fixing comments
This commit is contained in:
parent
246cfb4a26
commit
1319eaa578
22
comments.php
22
comments.php
|
@ -25,11 +25,27 @@ if ( post_password_required() ) {
|
|||
<?php if ( have_comments() ) : ?>
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
printf( // WPCS: XSS OK.
|
||||
esc_html( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'understrap' ) ),
|
||||
number_format_i18n( get_comments_number() ),
|
||||
$comments_number = get_comments_number();
|
||||
if ( 1 === $comments_number ) {
|
||||
printf(
|
||||
/* translators: %s: post title */
|
||||
esc_html_x( 'One thought on “%s”', 'comments title', 'understrap' ),
|
||||
'<span>' . get_the_title() . '</span>'
|
||||
);
|
||||
} else {
|
||||
printf( // WPCS: XSS OK.
|
||||
/* translators: 1: number of comments, 2: post title */
|
||||
esc_html( _nx(
|
||||
'%1$s thought on “%2$s”',
|
||||
'%1$s thoughts on “%2$s”',
|
||||
$comments_number,
|
||||
'comments title',
|
||||
'understrap'
|
||||
) ),
|
||||
number_format_i18n( $comments_number ),
|
||||
'<span>' . get_the_title() . '</span>'
|
||||
);
|
||||
}
|
||||
?>
|
||||
</h2><!-- .comments-title -->
|
||||
|
||||
|
|
Reference in New Issue