Ticket #9962: taxonomy.diff
| File taxonomy.diff, 930 bytes (added by wnorris, 4 years ago) |
|---|
-
wp-includes/taxonomy.php
1279 1279 } else if ( 'tt_ids' == $fields ) { 1280 1280 if ( !empty($order_by) ) 1281 1281 $orderby = "ORDER BY tr.term_taxonomy_id"; 1282 $terms = $wpdb->get_col("SELECT tr.term_taxonomy_id FROM $wpdb->term _relationships AS tr INNER JOIN $wpdb->term_taxonomy AS ttON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN ($object_ids) AND tt.taxonomy IN ($taxonomies) $orderby $order");1282 $terms = $wpdb->get_col("SELECT tr.term_taxonomy_id FROM $wpdb->terms as t INNER JOIN $wpdb->term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN ($object_ids) AND tt.taxonomy IN ($taxonomies) $orderby $order"); 1283 1283 } 1284 1284 1285 1285 if ( ! $terms )
