Changeset 3220 for trunk/wp-includes/functions.php
- Timestamp:
- 11/28/2005 09:44:56 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r3219 r3220 1278 1278 $post_ids = implode(',', $post_ids); 1279 1279 1280 $dogs = $wpdb->get_results("SELECT DISTINCT 1281 post_id, cat_ID FROM $wpdb->categories, $wpdb->post2cat 1282 WHERE category_id = cat_ID AND post_id IN ($post_ids)"); 1280 $dogs = $wpdb->get_results("SELECT post_id, category_id FROM $wpdb->post2cat WHERE post_id IN ($post_ids)"); 1283 1281 1284 1282 if ( empty($dogs) ) … … 1286 1284 1287 1285 foreach ($dogs as $catt) 1288 $category_cache[$catt->post_id][$catt->cat _ID] = &get_category($catt->cat_ID);1286 $category_cache[$catt->post_id][$catt->category_id] = &get_category($catt->category_id); 1289 1287 } 1290 1288
Note: See TracChangeset
for help on using the changeset viewer.