mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Drop USE INDEX
git-svn-id: https://develop.svn.wordpress.org/trunk@9022 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1555,7 +1555,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) {
|
||||
$approved
|
||||
ORDER BY comment_date_gmt DESC LIMIT $start, $num");
|
||||
} else {
|
||||
$comments = $wpdb->get_results( "SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->comments USE INDEX (comment_date_gmt) WHERE $approved ORDER BY comment_date_gmt DESC LIMIT $start, $num" );
|
||||
$comments = $wpdb->get_results( "SELECT SQL_CALC_FOUND_ROWS * FROM $wpdb->comments WHERE $approved ORDER BY comment_date_gmt DESC LIMIT $start, $num" );
|
||||
}
|
||||
|
||||
update_comment_cache($comments);
|
||||
|
||||
Reference in New Issue
Block a user