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:
parent
96d9aa75ae
commit
c91c804b9a
|
@ -117,7 +117,7 @@ function wp_insert_category($catarr) {
|
||||||
$wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" );
|
$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) {
|
if ($update) {
|
||||||
do_action('edit_category', $cat_ID);
|
do_action('edit_category', $cat_ID);
|
||||||
|
|
Loading…
Reference in New Issue