Use ->comments instead of . fixes #2293
git-svn-id: https://develop.svn.wordpress.org/trunk@3443 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3329ef57fd
commit
cbcdd4cbb0
@ -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
Block a user