Spam tastes great, we should eat more of it. Add 'spam' approval value, and basic blacklist.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2005-01-10 20:21:06 +00:00
parent 2ce6f9608d
commit 652654d4d5
5 changed files with 64 additions and 24 deletions

View File

@@ -66,7 +66,7 @@ if (isset($_GET['s'])) {
else
$offset = 0;
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments ORDER BY comment_date DESC LIMIT $offset,20");
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '0' OR comment_approved = '1' ORDER BY comment_date DESC LIMIT $offset,20");
}
if ('view' == $mode) {
if ($comments) {