WordPress.org

Make WordPress Core

Changeset 14679


Ignore:
Timestamp:
05/15/2010 09:44:12 PM (8 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r14644 r14679  
    645645            $number = 1;
    646646
    647         $comments = get_comments(array('number' => $number));
     647        $comments = get_comments( array( 'number' => $number, 'status' => 'approve' ) );
    648648        $output .= $before_widget;
    649649        if ( $title )
Note: See TracChangeset for help on using the changeset viewer.