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:
parent
64c5bb0a26
commit
7202c8c0b0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue