]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/dashboard.php
Wordpress 3.1.3
[autoinstalls/wordpress.git] / wp-admin / includes / dashboard.php
index 8f937f36ac444eebe5afdf308a25db9b648a443a..2b10928b02dad005232b44f66bfa3119ae489587 100644 (file)
@@ -609,7 +609,7 @@ function wp_dashboard_recent_comments() {
        $total_items = isset( $widgets['dashboard_recent_comments'] ) && isset( $widgets['dashboard_recent_comments']['items'] )
                ? absint( $widgets['dashboard_recent_comments']['items'] ) : 5;
 
-       while ( count( $comments ) < 5 && $possible = $wpdb->get_results( "SELECT * FROM $wpdb->comments c LEFT JOIN $wpdb->posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' ORDER BY c.comment_date_gmt DESC LIMIT $start, 50" ) ) {
+       while ( count( $comments ) < $total_items && $possible = $wpdb->get_results( "SELECT * FROM $wpdb->comments c LEFT JOIN $wpdb->posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' ORDER BY c.comment_date_gmt DESC LIMIT $start, 50" ) ) {
 
                foreach ( $possible as $comment ) {
                        if ( count( $comments ) >= $total_items )