From ce2eb81eefce02825fc8f9ddd1b8b48f17bc6f68 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 13 Mar 2008 15:55:17 +0000 Subject: 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 --- wp-includes/wpmu-functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wp-includes') 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; } -- cgit