diff --git a/wp-admin/index.php b/wp-admin/index.php index b720a234c5..e383ead29e 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -47,7 +47,7 @@ foreach ($scheduled as $post) { get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments ORDER BY comment_date_gmt DESC LIMIT 5") ) : +if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5") ) : ?>