From e2a4062cf63f006758d3a3fb62837e7013b8d508 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Thu, 14 Nov 2024 02:20:04 +0100 Subject: [PATCH] Format comment header number Apparently, some stories actually break a thousand. Good for them. --- includes/functions/comments/_comments_threads.php | 2 +- includes/functions/hooks/_story_hooks.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions/comments/_comments_threads.php b/includes/functions/comments/_comments_threads.php index 694705ae..a6782d4b 100644 --- a/includes/functions/comments/_comments_threads.php +++ b/includes/functions/comments/_comments_threads.php @@ -102,7 +102,7 @@ if ( ! function_exists( 'fictioneer_comment_header' ) ) { %1$s %2$s' ), - $comment_count, + number_format_i18n( $comment_count ), _n( 'Comment', 'Comments', $comment_count, 'fictioneer' ) ) ?> diff --git a/includes/functions/hooks/_story_hooks.php b/includes/functions/hooks/_story_hooks.php index b8e24a10..377db461 100644 --- a/includes/functions/hooks/_story_hooks.php +++ b/includes/functions/hooks/_story_hooks.php @@ -805,7 +805,7 @@ function fictioneer_story_comments( $args ) { $story['comment_count'], 'fictioneer' ), - $story['comment_count'] + number_format_i18n( $story['comment_count'] ) ); ?>