Use ->comments instead of . fixes #2293
git-svn-id: http://svn.automattic.com/wordpress/trunk@3443 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d96ba966cd
commit
795609c953
|
@ -33,7 +33,7 @@ foreach ($rss->items as $item ) {
|
|||
|
||||
<?php
|
||||
$comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5");
|
||||
$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'");
|
||||
$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
|
||||
|
||||
if ( $comments || $numcomments ) :
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue