mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Drop USE INDEX
git-svn-id: http://svn.automattic.com/wordpress/trunk@9022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
493fb7fb56
commit
f5f8f81f8f
@ -1555,7 +1555,7 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num ) {
|
|||||||
$approved
|
$approved
|
||||||
ORDER BY comment_date_gmt DESC LIMIT $start, $num");
|
ORDER BY comment_date_gmt DESC LIMIT $start, $num");
|
||||||
} else {
|
} 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);
|
update_comment_cache($comments);
|
||||||
|
Loading…
Reference in New Issue
Block a user