Changeset 3011 for trunk/wp-admin/admin-db.php
- Timestamp:
- 11/07/2005 09:56:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-db.php
r2959 r3011 119 119 } 120 120 121 wp_cache_set($cat_ID, get_category($cat_ID), 'category'); 122 121 123 if ($update) { 122 124 do_action('edit_category', $cat_ID); 123 125 } else { 126 wp_cache_delete('all_category_ids', 'category'); 124 127 do_action('create_category', $cat_ID); 125 128 do_action('add_category', $cat_ID); … … 167 170 // TODO: Only set categories to general if they're not in another category already 168 171 $wpdb->query("UPDATE $wpdb->post2cat SET category_id='1' WHERE category_id='$cat_ID'"); 172 173 wp_cache_delete($cat_ID, 'category'); 174 wp_cache_delete('all_category_ids', 'category'); 169 175 170 176 do_action('delete_category', $cat_ID); … … 234 240 $wpdb->query("DELETE FROM $wpdb->users WHERE ID = $id"); 235 241 242 wp_cache_delete($id, 'users'); 243 // TODO: Need to delete username keyed cache object. 244 236 245 do_action('delete_user', $id); 237 246
Note: See TracChangeset
for help on using the changeset viewer.