From 2610af8b7bf86a8a5fdfcd10cbb5d29373009cd8 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 28 Feb 2010 01:42:25 +0000 Subject: [PATCH] Add filter to the links in paginate_links(). fixes #10826, props johnjamesjacoby git-svn-id: http://svn.automattic.com/wordpress/trunk@13478 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 80013c0e5..cdb4e8254 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1957,7 +1957,7 @@ function paginate_links( $args = '' ) { if ( $add_args ) $link = add_query_arg( $add_args, $link ); $link .= $add_fragment; - $page_links[] = ""; + $page_links[] = ""; endif; for ( $n = 1; $n <= $total; $n++ ) : $n_display = number_format_i18n($n); @@ -1971,7 +1971,7 @@ function paginate_links( $args = '' ) { if ( $add_args ) $link = add_query_arg( $add_args, $link ); $link .= $add_fragment; - $page_links[] = "$n_display"; + $page_links[] = "$n_display"; $dots = true; elseif ( $dots && !$show_all ) : $page_links[] = "..."; @@ -1985,7 +1985,7 @@ function paginate_links( $args = '' ) { if ( $add_args ) $link = add_query_arg( $add_args, $link ); $link .= $add_fragment; - $page_links[] = ""; + $page_links[] = ""; endif; switch ( $type ) : case 'array' :