Format comment header number

Apparently, some stories actually break a thousand. Good for them.
This commit is contained in:
Tetrakern 2024-11-14 02:20:04 +01:00
parent ee7a497134
commit e2a4062cf6
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ if ( ! function_exists( 'fictioneer_comment_header' ) ) {
<?php echo <?php echo
sprintf( sprintf(
__( '<span class="fictioneer-comments__total">%1$s</span> <span>%2$s</span>' ), __( '<span class="fictioneer-comments__total">%1$s</span> <span>%2$s</span>' ),
$comment_count, number_format_i18n( $comment_count ),
_n( 'Comment', 'Comments', $comment_count, 'fictioneer' ) _n( 'Comment', 'Comments', $comment_count, 'fictioneer' )
) )
?> ?>

View File

@ -805,7 +805,7 @@ function fictioneer_story_comments( $args ) {
$story['comment_count'], $story['comment_count'],
'fictioneer' 'fictioneer'
), ),
$story['comment_count'] number_format_i18n( $story['comment_count'] )
); );
?></h2> ?></h2>
<?php endif; ?> <?php endif; ?>