From 0b6f00c0c1a26180653f03bd4299e4316eaee9f5 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 10 Mar 2010 08:41:09 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20paging=20links=20"Displaying=20x=E2=80=93?= =?UTF-8?q?y=20of=20z"=20for=20Pages.=20Props=20Utkarsh.=20Fixes=20#12552?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://develop.svn.wordpress.org/trunk@13643 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 9450f9c1da..dee7727692 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -353,12 +353,16 @@ if ( $is_trash && current_user_can($post_type_object->edit_others_cap) ) { ?> -
' . __( 'Displaying %s–%s of %s' ) . '%s', - number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), - number_format_i18n( min( $pagenum * $per_page, $wp_query->found_posts ) ), - number_format_i18n( $wp_query->found_posts ), - $page_links -); echo $page_links_text; ?>
+
hierarchical ? $wp_query->post_count : $wp_query->found_posts; + $page_links_text = sprintf( '' . __( 'Displaying %s–%s of %s' ) . '%s', + number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), + number_format_i18n( min( $pagenum * $per_page, $count_posts ) ), + number_format_i18n( $count_posts ), + $page_links + ); + echo $page_links_text; + ?>