Changes from branches/2.3/wp-includes/taxonomy.php at r6253 to trunk/wp-includes/taxonomy.php at r6159
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r6253 r6159 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 INNERJOIN $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 LEFT 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.