From 1e035082cceb9704552c72e3beacbdfa2f3914ce Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 18 Nov 2008 01:10:40 +0000 Subject: [PATCH] Format page numbers. see #8266 git-svn-id: https://develop.svn.wordpress.org/trunk@9749 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 cfa45f2967..ccb572ba0b 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[] = "...";