s/comment_status/comment_approved/. Bug 807. Hat tip: gbhugo.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-02-05 18:32:57 +00:00
parent 284b2bd617
commit 10d39e20e1
1 changed files with 1 additions and 1 deletions

View File

@ -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 AND comment_status != 'spam' ORDER BY comment_date");
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved != 'spam' ORDER BY comment_date");
if ($comments) {
?>
<h3><?php _e('Comments') ?></h3>