diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 5dad0c9fe8..80dfc5457e 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -173,7 +173,7 @@ function wp_dashboard_right_now() { $num_tags = wp_count_terms('post_tag'); - $num_comm = get_comment_count( ); + $num_comm = wp_count_comments( ); echo "\n\t".'
' . __('At a Glance') . '
'; echo "\n\t".''.$num.' | '; - echo '' . __ngettext( 'Comment', 'Comments', $num_comm['total_comments'] ) . ' | '; + echo '' . __ngettext( 'Comment', 'Comments', $num_comm->total_comments ) . ' | '; echo '|
' . __ngettext( 'Page', 'Pages', $num_pages->publish ) . ' | '; // Approved Comments - $num = number_format_i18n($num_comm['approved']); + $num = number_format_i18n($num_comm->approved); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; echo ''.$num.' | '; - echo '' . __ngettext( 'Approved', 'Approved', $num_comm['approved'] ) . ' | '; + echo '' . __ngettext( 'Approved', 'Approved', $num_comm->approved ) . ' | '; echo "
' . __ngettext( 'Category', 'Categories', $num_cats ) . ' | '; // Pending Comments - $num = number_format_i18n($num_comm['awaiting_moderation']); + $num = number_format_i18n($num_comm->moderated); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; echo ''.$num.' | '; - echo '' . __ngettext( 'Pending', 'Pending', $num_comm['awaiting_moderation'] ) . ' | '; + echo '' . __ngettext( 'Pending', 'Pending', $num_comm->moderated ) . ' | '; echo "
' . __ngettext( 'Tag', 'Tags', $num_tags ) . ' | '; // Spam Comments - $num = number_format_i18n($num_comm['spam']); + $num = number_format_i18n($num_comm->spam); if ( current_user_can( 'moderate_comments' ) ) $num = "$num"; echo ''.$num.' | '; - echo '' . __ngettext( 'Spam', 'Spam', $num_comm['spam'] ) . ' | '; + echo '' . __ngettext( 'Spam', 'Spam', $num_comm->spam ) . ' | '; echo "