From 035485998f3d8dd3c05f05f9e1a51baa4c9495b3 Mon Sep 17 00:00:00 2001 From: dd32 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: http://svn.automattic.com/wordpress/trunk@13643 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; + ?>