mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-08 17:38:26 +01:00
Don't show spam in list
git-svn-id: http://svn.automattic.com/wordpress/trunk@2211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
abbc6c431d
commit
8d818702a0
@ -167,7 +167,7 @@ $class = ('alternate' == $class) ? '' : 'alternate';
|
||||
<?php
|
||||
if ( 1 == count($posts) ) {
|
||||
|
||||
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id ORDER BY comment_date");
|
||||
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_status != 'spam' ORDER BY comment_date");
|
||||
if ($comments) {
|
||||
?>
|
||||
<h3><?php _e('Comments') ?></h3>
|
||||
|
Loading…
Reference in New Issue
Block a user