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

git-svn-id: https://develop.svn.wordpress.org/trunk@2075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-01-10 20:21:06 +00:00
parent 99b07ae3bc
commit 3696312ac7
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) {