Changeset 6825
- Timestamp:
- 02/13/08 19:15:30 (9 months ago)
- Files:
-
- trunk/wp-admin/includes/schema.php (modified) (1 diff)
- trunk/wp-admin/includes/template.php (modified) (1 diff)
- trunk/wp-includes/version.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/includes/schema.php
r6780 r6825 54 54 KEY comment_approved (comment_approved), 55 55 KEY comment_post_ID (comment_post_ID), 56 KEY comment_approved_date_gmt (comment_approved,comment_date_gmt) 56 KEY comment_approved_date_gmt (comment_approved,comment_date_gmt), 57 KEY comment_date_gmt (comment_date_gmt) 57 58 ) $charset_collate; 58 59 CREATE TABLE $wpdb->links ( trunk/wp-admin/includes/template.php
r6804 r6825 557 557 comment_content LIKE ('%$s%') ) AND 558 558 comment_approved != 'spam' 559 ORDER BY comment_date DESC LIMIT $start, $num");559 ORDER BY comment_date_gmt DESC LIMIT $start, $num"); 560 560 } else { 561 $comments = $wpdb->get_results( "SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->comments WHERE comment_approved = '0' OR comment_approved = '1' ORDER BY comment_dateDESC LIMIT $start, $num" );561 $comments = $wpdb->get_results( "SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->comments USE INDEX (comment_date_gmt) WHERE comment_approved = '0' OR comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $start, $num" ); 562 562 } 563 563 trunk/wp-includes/version.php
r6748 r6825 17 17 * @global int $wp_db_version 18 18 */ 19 $wp_db_version = 6 748;19 $wp_db_version = 6825; 20 20 21 21 ?>
