From ed27fc2210df96ab249f184fc235c2ef06393775 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 26 Nov 2008 18:53:59 +0000 Subject: [PATCH] Move Pending above Spam. fixes #8371 git-svn-id: https://develop.svn.wordpress.org/trunk@9905 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/dashboard.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index d048164902..74f8c5913a 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -238,12 +238,12 @@ function wp_dashboard_right_now() { echo ''.$num.''; echo '' . __ngettext( 'Category', 'Categories', $num_cats ) . ''; - // Spam Comments - $num = number_format_i18n($num_comm['spam']); + // Pending Comments + $num = number_format_i18n($num_comm['awaiting_moderation']); if ( current_user_can( 'moderate_comments' ) ) - $num = "$num"; - echo ''.$num.''; - echo '' . __ngettext( 'Spam', 'Spam', $num_comm['spam'] ) . ''; + $num = "$num"; + echo ''.$num.''; + echo '' . __ngettext( 'Pending', 'Pending', $num_comm['awaiting_moderation'] ) . ''; echo "\n\t"; @@ -254,12 +254,12 @@ function wp_dashboard_right_now() { echo ''.$num.''; echo '' . __ngettext( 'Tag', 'Tags', $num_tags ) . ''; - // Pending Comments - $num = number_format_i18n($num_comm['awaiting_moderation']); + // Spam Comments + $num = number_format_i18n($num_comm['spam']); if ( current_user_can( 'moderate_comments' ) ) - $num = "$num"; - echo ''.$num.''; - echo '' . __ngettext( 'Pending', 'Pending', $num_comm['awaiting_moderation'] ) . ''; + $num = "$num"; + echo ''.$num.''; + echo '' . __ngettext( 'Spam', 'Spam', $num_comm['spam'] ) . ''; echo ""; do_action('right_now_table_end');