Commit fb9a8113 authored by Erick Hitter's avatar Erick Hitter
Browse files

If post counts are desired, ensure large numbers are probably localized for display.

parent 75ccf868
......@@ -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 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment