Don't show unapproved comments in comments widget. props jshreve, fixes #10615.

git-svn-id: https://develop.svn.wordpress.org/trunk@14679 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-15 21:44:12 +00:00
parent 60c2623599
commit e6fcc1df7c
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
else if ( $number < 1 )
$number = 1;
$comments = get_comments(array('number' => $number));
$comments = get_comments( array( 'number' => $number, 'status' => 'approve' ) );
$output .= $before_widget;
if ( $title )
$output .= $before_title . $title . $after_title;