summaryrefslogtreecommitdiffstats
path: root/wp-admin
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-11-27 11:19:48 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-11-27 11:19:48 +0000
commit5447f131269541ea942ae9239c95b4e1188fb57c (patch)
tree11bbdce67a32ce816b14425dd95244786a29b801 /wp-admin
parent600b71019494e1c29898a620e58c0d2602f37b74 (diff)
downloadwordpress-mu-5447f131269541ea942ae9239c95b4e1188fb57c.tar.gz
wordpress-mu-5447f131269541ea942ae9239c95b4e1188fb57c.tar.xz
wordpress-mu-5447f131269541ea942ae9239c95b4e1188fb57c.zip
WP Merge to rev 4534
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@811 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
-rw-r--r--wp-admin/admin-db.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-admin/admin-db.php b/wp-admin/admin-db.php
index ea6e60d..27c422f 100644
--- a/wp-admin/admin-db.php
+++ b/wp-admin/admin-db.php
@@ -139,6 +139,7 @@ function wp_insert_category($catarr) {
}
wp_cache_delete($cat_ID, 'category');
+ wp_cache_delete('get_categories', 'category');
if ($update) {
do_action('edit_category', $cat_ID);
@@ -220,6 +221,7 @@ function wp_delete_category($cat_ID) {
wp_cache_delete($cat_ID, 'category');
wp_cache_delete('all_category_ids', 'category');
+ wp_cache_delete('get_categories', 'category');
do_action('delete_category', $cat_ID);
@@ -413,6 +415,7 @@ function wp_delete_link($link_id) {
foreach ( $categories as $category ) {
$wpdb->query("UPDATE $wpdb->categories SET link_count = link_count - 1 WHERE cat_ID = '$category'");
wp_cache_delete($category, 'category');
+ do_action('edit_category', $cat_id);
}
}