Use $paged global instead of get_query_var('paged') in Twenty Ten. see #12748

git-svn-id: https://develop.svn.wordpress.org/trunk@13889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-03-30 13:12:36 +00:00
parent d3715d1b45
commit 4746be453f
1 changed files with 3 additions and 2 deletions

View File

@ -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;