diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-16 21:27:04 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-16 21:27:04 +0000 |
commit | 72e9496bfc2f7a962cf4f428ccab25c7a0175aaa (patch) | |
tree | af3e2ca7136c77140d9e9201e3f495a4b8e7a6da /wp-admin/admin-db.php | |
parent | 04b67169db33e30f5ca63dbbafe551fdc6fb2164 (diff) | |
download | wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.tar.gz wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.tar.xz wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.zip |
WP Merge to rev 4753
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@849 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/admin-db.php')
-rw-r--r-- | wp-admin/admin-db.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wp-admin/admin-db.php b/wp-admin/admin-db.php index 40b4556..eab830e 100644 --- a/wp-admin/admin-db.php +++ b/wp-admin/admin-db.php @@ -141,9 +141,6 @@ function wp_insert_category($catarr) { // Keep in mind when using this filter and altering the cat_ID that the two queries above // have already taken place with the OLD cat_ID // Also note that you may have post2cat entries with the old cat_ID if this is an update - $cat_ID = apply_filters('cat_id_filter', $cat_ID, $update); - - clean_category_cache($cat_ID); if ($update) { do_action('edit_category', $cat_ID); @@ -152,6 +149,10 @@ function wp_insert_category($catarr) { do_action('add_category', $cat_ID); } + $cat_ID = apply_filters('cat_id_filter', $cat_ID, $update); + + clean_category_cache($cat_ID); + return $cat_ID; } |