Changeset 2550
- Timestamp:
- 04/19/2005 05:27:24 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r2535 r2550 1190 1190 function update_category_cache() { 1191 1191 global $cache_categories, $wpdb; 1192 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); 1193 foreach ($dogs as $catt) { 1194 $catt->category_id = $catt->cat_ID; // Alias. 1192 $dogs = $wpdb->get_results("SELECT *, cat_ID as category_id FROM $wpdb->categories"); 1193 foreach ($dogs as $catt) 1195 1194 $cache_categories[$catt->cat_ID] = $catt; 1196 }1197 1195 } 1198 1196
Note: See TracChangeset
for help on using the changeset viewer.