From b35eb435a30191510b5c25ccc8549c17e7563939 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 30 Mar 2010 13:12:36 +0000 Subject: [PATCH] Use $paged global instead of get_query_var('paged') in Twenty Ten. see #12748 git-svn-id: http://svn.automattic.com/wordpress/trunk@13889 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index fd389d8fe6..bb42b3c667 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -199,8 +199,9 @@ if ( ! function_exists( 'twentyten_the_page_number' ) ) : * @since 3.0.0 */ function twentyten_the_page_number() { - if ( get_query_var( 'paged' ) ) - echo ' | ' . __( 'Page ' , 'twentyten' ) . get_query_var( 'paged' ); + global $paged; // Contains page number. + if ( $paged >= 2 ) + echo ' | ' . sprintf( __( 'Page %s' , 'twentyten' ), $paged ); } endif;