Changeset 6253 for branches/2.3/wp-includes/taxonomy.php
- Timestamp:
- 10/15/2007 08:14:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/wp-includes/taxonomy.php
r6159 r6253 1358 1358 1359 1359 // Get the object and term ids and stick them in a lookup table 1360 $results = $wpdb->get_results("SELECT object_id, term_taxonomy_id FROM $wpdb->term_relationships LEFTJOIN $wpdb->posts ON object_id = ID WHERE term_taxonomy_id IN (".join(',', array_keys($term_ids)).") AND post_type = 'post' AND post_status = 'publish'");1360 $results = $wpdb->get_results("SELECT object_id, term_taxonomy_id FROM $wpdb->term_relationships INNER JOIN $wpdb->posts ON object_id = ID WHERE term_taxonomy_id IN (".join(',', array_keys($term_ids)).") AND post_type = 'post' AND post_status = 'publish'"); 1361 1361 foreach ( $results as $row ) { 1362 1362 $id = $term_ids[$row->term_taxonomy_id];
Note: See TracChangeset
for help on using the changeset viewer.