From 919fd587680bac747a62732802127e9fd618624e Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 26 Nov 2008 18:53:59 +0000 Subject: [PATCH] Move Pending above Spam. fixes #8371 git-svn-id: http://svn.automattic.com/wordpress/trunk@9905 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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');