summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-03-13 15:55:17 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-03-13 15:55:17 +0000
commitce2eb81eefce02825fc8f9ddd1b8b48f17bc6f68 (patch)
treee319310ad01e8173042138faed4029e1ff7c012e /wp-includes
parent918af515a16abd8c35cefe02501f41043624e97f (diff)
downloadwordpress-mu-ce2eb81eefce02825fc8f9ddd1b8b48f17bc6f68.tar.gz
wordpress-mu-ce2eb81eefce02825fc8f9ddd1b8b48f17bc6f68.tar.xz
wordpress-mu-ce2eb81eefce02825fc8f9ddd1b8b48f17bc6f68.zip
Clean cache of old term_id, fixes #569, props chmac
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1208 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/wpmu-functions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index 99f26a0..3bb675d 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -1859,8 +1859,7 @@ function global_terms( $term_id, $tt_id ) {
$wpdb->query( "UPDATE $wpdb->term_taxonomy SET term_id = '$global_id' WHERE term_id = '$term_id'" );
$wpdb->query( "UPDATE $wpdb->term_taxonomy SET parent = '$global_id' WHERE parent = '$term_id'" );
- clean_term_cache($global_id, 'category');
- clean_term_cache($global_id, 'post_tag');
+ clean_term_cache($term_id);
return $global_id;
}