mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 09:10:06 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user