Changeset 11749 for trunk/wp-admin/includes/dashboard.php
- Timestamp:
- 07/30/2009 01:39:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r11741 r11749 481 481 $start = 0; 482 482 483 while ( count( $comments ) < 5 && $possible = $wpdb->get_results( "SELECT * FROM $wpdb->comments ORDER BYcomment_date_gmt DESC LIMIT $start, 50" ) ) {483 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" ) ) { 484 484 485 485 foreach ( $possible as $comment ) {
Note: See TracChangeset
for help on using the changeset viewer.