WordPress.org

Make WordPress Core

Changeset 13889


Ignore:
Timestamp:
03/30/10 13:12:36 (5 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13888 r13889  
    200200 */ 
    201201function twentyten_the_page_number() { 
    202     if ( get_query_var( 'paged' ) ) 
    203         echo ' | ' . __( 'Page ' , 'twentyten' ) . get_query_var( 'paged' ); 
     202    global $paged; // Contains page number. 
     203    if ( $paged >= 2 ) 
     204        echo ' | ' . sprintf( __( 'Page %s' , 'twentyten' ), $paged ); 
    204205} 
    205206endif; 
Note: See TracChangeset for help on using the changeset viewer.