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
This commit is contained in:
parent
523b8a0846
commit
b35eb435a3
|
@ -199,8 +199,9 @@ if ( ! function_exists( 'twentyten_the_page_number' ) ) :
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
function twentyten_the_page_number() {
|
function twentyten_the_page_number() {
|
||||||
if ( get_query_var( 'paged' ) )
|
global $paged; // Contains page number.
|
||||||
echo ' | ' . __( 'Page ' , 'twentyten' ) . get_query_var( 'paged' );
|
if ( $paged >= 2 )
|
||||||
|
echo ' | ' . sprintf( __( 'Page %s' , 'twentyten' ), $paged );
|
||||||
}
|
}
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue