WordPress.org

Make WordPress Core

Changeset 14188


Ignore:
Timestamp:
04/22/10 17:59:21 (5 years ago)
Author:
ryan
Message:

Fix paging numbers. Props ocean90. fixes #13082

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-sites.php

    r14103 r14188  
    424424        <?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    425425        number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), 
    426         number_format_i18n( min( $pagenum * $per_page, $num_pages ) ), 
    427         number_format_i18n( $num_pages ), 
     426        number_format_i18n( min( $pagenum * $per_page, $total ) ), 
     427        number_format_i18n( $total ), 
    428428        $page_links 
    429429        ); echo $page_links_text; ?> 
  • trunk/wp-admin/ms-users.php

    r14039 r14188  
    142142            <?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    143143            number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), 
    144             number_format_i18n( min( $pagenum * $per_page, $num_pages ) ), 
    145             number_format_i18n( $num_pages ), 
     144            number_format_i18n( min( $pagenum * $per_page, $total ) ), 
     145            number_format_i18n( $total ), 
    146146            $page_links 
    147147            ); echo $page_links_text; ?> 
Note: See TracChangeset for help on using the changeset viewer.