Don't show spam in list
git-svn-id: https://develop.svn.wordpress.org/trunk@2211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
39b9c4005e
commit
c1a3f8b7a9
|
@ -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