From 7d7a28c515da125d8f0a9eade975a885d1c3486a Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 23 Mar 2008 07:10:17 +0000 Subject: [PATCH] Sometimes people have huge numbers of posts, let's always number_format them. Also, additional related link. git-svn-id: http://svn.automattic.com/wordpress/trunk@7485 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 1 + wp-admin/edit-pages.php | 2 +- wp-admin/edit.php | 18 +++++++++--------- wp-admin/includes/media.php | 2 +- wp-admin/upload.php | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index dd65eaecf5..f0d14eaea1 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -168,6 +168,7 @@ if ( ( 'edit' == $action) && current_user_can('delete_post', $post_ID) )
  • +
  • diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index dd07322037..ee4bee2c26 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -93,7 +93,7 @@ foreach ( $post_stati as $status => $label ) { $class = ' class="current"'; $status_links[] = "
  • " . - sprintf(__ngettext($label[2][0], $label[2][1], $num_posts->$status), $num_posts->$status) . ''; + sprintf(__ngettext($label[2][0], $label[2][1], $num_posts->$status), number_format_i18n( $num_posts->$status ) ) . ''; } echo implode(' |
  • ', $status_links) . ''; unset($status_links); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 8c5d345ce5..0da6d506db 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -82,25 +82,25 @@ if ( is_single() ) { diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 349e905813..fade6a6129 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -996,7 +996,7 @@ foreach ( $post_mime_types as $mime_type => $label ) { if ( wp_match_mime_types($mime_type, $_GET['post_mime_type']) ) $class = ' class="current"'; - $type_links[] = "
  • $mime_type, 'paged'=>false)) . "'$class>" . sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), "{$num_posts[$mime_type]}") . ''; + $type_links[] = "
  • $mime_type, 'paged'=>false)) . "'$class>" . sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), "" . number_format_i18n( $num_posts[$mime_type] ) . '') . ''; } echo implode(' |
  • ', $type_links) . ''; unset($type_links); diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 87b84bfdc5..d622b72624 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -98,7 +98,7 @@ foreach ( $post_mime_types as $mime_type => $label ) { $class = ' class="current"'; $type_links[] = "
  • " . - sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), $num_posts[$mime_type]) . ''; + sprintf(__ngettext($label[2][0], $label[2][1], $num_posts[$mime_type]), number_format_i18n( $num_posts[$mime_type] )) . ''; } echo implode(' |
  • ', $type_links) . ''; unset($type_links);