From b58bb24748860e011894a2c7a7ef58eecb9527d3 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 18 Nov 2008 01:10:40 +0000 Subject: [PATCH] Format page numbers. see #8266 git-svn-id: http://svn.automattic.com/wordpress/trunk@9749 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index cfa45f296..ccb572ba0 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1690,8 +1690,9 @@ function paginate_links( $args = '' ) { $page_links[] = ""; endif; for ( $n = 1; $n <= $total; $n++ ) : + $n_display = number_format_i18n($n); if ( $n == $current ) : - $page_links[] = "$n"; + $page_links[] = "$n_display"; $dots = true; else : if ( $show_all || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) : @@ -1700,7 +1701,7 @@ function paginate_links( $args = '' ) { if ( $add_args ) $link = add_query_arg( $add_args, $link ); $link .= $add_fragment; - $page_links[] = "$n"; + $page_links[] = "$n_display"; $dots = true; elseif ( $dots && !$show_all ) : $page_links[] = "...";