diff --git a/wp-admin/wp-moderation.php b/wp-admin/wp-moderation.php index 3dc16b4e39..ea1edafd64 100644 --- a/wp-admin/wp-moderation.php +++ b/wp-admin/wp-moderation.php @@ -143,8 +143,8 @@ default:
get_results("SELECT * FROM $tablecomments WHERE comment_approved = 0"); +$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_approved = '0'"); + if ($comments) { // list all comments that are waiting for approval $file = basename(__FILE__);