From fb9a811302ca91602c739ee70f51ff59a07c5c6c Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Sat, 11 May 2013 20:30:20 -0500 Subject: [PATCH] If post counts are desired, ensure large numbers are probably localized for display. --- date-based-taxonomy-archives.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/date-based-taxonomy-archives.php b/date-based-taxonomy-archives.php index cc7f357..cddfb81 100644 --- a/date-based-taxonomy-archives.php +++ b/date-based-taxonomy-archives.php @@ -108,6 +108,7 @@ class Date_Based_Taxonomy_Archives { * @uses this::get_incrementor * @uses wp_cache_get * @uses wp_cache_set + * @uses number_format_i18n * @uses get_month_link * @uses get_archives_link * @return string or false @@ -163,7 +164,7 @@ class Date_Based_Taxonomy_Archives { $text = $wp_locale->get_month( $result->month ); - $after = $show_post_count ? ' (' . absint( $result->posts ) . ')' . $_after : $_after; + $after = $show_post_count ? ' (' . number_format_i18n( absint( $result->posts ) ) . ')' . $_after : $_after; $output .= get_archives_link( $url, $text, 'html', $before, $after ); } -- GitLab