Update cache when editing categories. fixes #2127
git-svn-id: http://svn.automattic.com/wordpress/trunk@3341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65223a924f
commit
8b686cdc2d
|
@ -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