Ticket #1005: bug1005_functions.diff
| File bug1005_functions.diff, 995 bytes (added by coffee2code, 7 years ago) |
|---|
-
wp-includes/functions.php
1009 1009 $post_id_list = implode(',', $post_id_list); 1010 1010 1011 1011 $dogs = $wpdb->get_results("SELECT DISTINCT 1012 ID, category_id, cat_name, category_nicename, category_description, category_parent1013 FROM $wpdb->categories, $wpdb->post2cat , $wpdb->posts1014 WHERE category_id = cat_ID AND post_id = ID AND post_idIN ($post_id_list)");1012 post_id, category_id, cat_name, category_nicename, category_description, category_parent 1013 FROM $wpdb->categories, $wpdb->post2cat 1014 WHERE category_id = cat_ID AND post_id IN ($post_id_list)"); 1015 1015 1016 1016 if (!empty($dogs)) { 1017 1017 foreach ($dogs as $catt) { 1018 $category_cache[$catt->ID][$catt->category_id] = $catt;1018 $category_cache[$catt->post_id][$catt->category_id] = $catt; 1019 1019 } 1020 1020 } 1021 1021
