No need to order results. Props dbuser123. see #7415

git-svn-id: http://svn.automattic.com/wordpress/trunk@8469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-07-27 16:58:35 +00:00
parent 1a98124b2c
commit 57ba058017
1 changed files with 1 additions and 1 deletions

View File

@ -2924,7 +2924,7 @@ function update_postmeta_cache($post_ids) {
// Get post-meta info
$id_list = join(',', $ids);
$cache = array();
if ( $meta_list = $wpdb->get_results("SELECT post_id, meta_key, meta_value FROM $wpdb->postmeta WHERE post_id IN ($id_list) ORDER BY post_id, meta_key", ARRAY_A) ) {
if ( $meta_list = $wpdb->get_results("SELECT post_id, meta_key, meta_value FROM $wpdb->postmeta WHERE post_id IN ($id_list)", ARRAY_A) ) {
foreach ( (array) $meta_list as $metarow) {
$mpid = (int) $metarow['post_id'];
$mkey = $metarow['meta_key'];