Changeset 2504
- Timestamp:
- 03/31/05 05:25:54 (4 years ago)
- Files:
-
- trunk/wp-admin/admin.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin.php
r2234 r2504 9 9 header('Pragma: no-cache'); 10 10 11 $dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories"); 12 foreach ($dogs as $catt) { 13 $cache_categories[$catt->cat_ID] = $catt; 14 } 11 update_category_cache(); 15 12 16 13 get_currentuserinfo(); trunk/wp-includes/functions.php
r2503 r2504 616 616 global $cache_categories, $wpdb; 617 617 618 if ( ! isset($cache_categories)) 619 update_category_cache(); 620 618 621 if (is_object($category)) { 619 622 if ( ! isset($cache_categories[$category->cat_ID])) … … 1171 1174 WHERE category_id = cat_ID AND post_id IN ($post_ids)"); 1172 1175 1176 if (! isset($cache_categories)) 1177 update_category_cache(); 1178 1173 1179 if ( !empty($dogs) ) { 1174 1180 foreach ($dogs as $catt) {
