mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Update cache when editing categories. fixes #2127
git-svn-id: https://develop.svn.wordpress.org/trunk@3341 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -117,7 +117,7 @@ function wp_insert_category($catarr) {
|
||||
$wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" );
|
||||
}
|
||||
|
||||
wp_cache_set($cat_ID, get_category($cat_ID), 'category');
|
||||
wp_cache_delete($cat_ID, 'category');
|
||||
|
||||
if ($update) {
|
||||
do_action('edit_category', $cat_ID);
|
||||
|
||||
Reference in New Issue
Block a user