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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-15 21:44:12 +00:00
parent 64c5bb0a26
commit 7202c8c0b0
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;