mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-30 08:26:42 +02:00
Make sure cache is clean when converting cats to tags. fixes #9186
git-svn-id: http://svn.automattic.com/wordpress/trunk@10608 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4399d9f7f9
commit
ef85a2429e
@ -325,14 +325,12 @@ function check_all_tagrows() {
|
||||
|
||||
if ( ! empty($clean_term_cache) ) {
|
||||
$clean_term_cache = array_unique(array_values($clean_term_cache));
|
||||
foreach ( $clean_term_cache as $id )
|
||||
wp_cache_delete($id, 'post_tag');
|
||||
clean_term_cache($clean_term_cache, 'post_tag');
|
||||
}
|
||||
|
||||
if ( ! empty($clean_cat_cache) ) {
|
||||
$clean_cat_cache = array_unique(array_values($clean_cat_cache));
|
||||
foreach ( $clean_cat_cache as $id )
|
||||
wp_cache_delete($id, 'category');
|
||||
clean_term_cache($clean_cat_cache, 'category');
|
||||
}
|
||||
|
||||
if ( $clear_parents ) delete_option('category_children');
|
||||
@ -414,14 +412,12 @@ function check_all_tagrows() {
|
||||
|
||||
if ( ! empty($clean_term_cache) ) {
|
||||
$clean_term_cache = array_unique(array_values($clean_term_cache));
|
||||
foreach ( $clean_term_cache as $id )
|
||||
wp_cache_delete($id, 'post_tag');
|
||||
clean_term_cache($clean_term_cache, 'post_tag');
|
||||
}
|
||||
|
||||
if ( ! empty($clean_cat_cache) ) {
|
||||
$clean_cat_cache = array_unique(array_values($clean_cat_cache));
|
||||
foreach ( $clean_cat_cache as $id )
|
||||
wp_cache_delete($id, 'category');
|
||||
clean_term_cache($clean_term_cache, 'category');
|
||||
}
|
||||
|
||||
if ( $clear_parents ) delete_option('category_children');
|
||||
|
Loading…
Reference in New Issue
Block a user