Fix paging numbers. Props ocean90. fixes #13082
git-svn-id: http://svn.automattic.com/wordpress/trunk@14188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f0bb52f8c4
commit
f4ccd9cac3
|
@ -423,8 +423,8 @@ switch ( $action ) {
|
||||||
<div class="tablenav-pages">
|
<div class="tablenav-pages">
|
||||||
<?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
<?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
||||||
number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
|
number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
|
||||||
number_format_i18n( min( $pagenum * $per_page, $num_pages ) ),
|
number_format_i18n( min( $pagenum * $per_page, $total ) ),
|
||||||
number_format_i18n( $num_pages ),
|
number_format_i18n( $total ),
|
||||||
$page_links
|
$page_links
|
||||||
); echo $page_links_text; ?>
|
); echo $page_links_text; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -141,8 +141,8 @@ if ( isset( $_GET['updated'] ) && $_GET['updated'] == 'true' && ! empty( $_GET['
|
||||||
<div class="tablenav-pages">
|
<div class="tablenav-pages">
|
||||||
<?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
<?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
|
||||||
number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
|
number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
|
||||||
number_format_i18n( min( $pagenum * $per_page, $num_pages ) ),
|
number_format_i18n( min( $pagenum * $per_page, $total ) ),
|
||||||
number_format_i18n( $num_pages ),
|
number_format_i18n( $total ),
|
||||||
$page_links
|
$page_links
|
||||||
); echo $page_links_text; ?>
|
); echo $page_links_text; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue