Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#9186 closed defect (bug) (fixed)

Clear the cache when converting a category to a tag, so category is removed from the list of cats

Reported by: warwickp's profile warwickp Owned by: ryan's profile ryan
Milestone: 2.7.2 Priority: normal
Severity: normal Version: 2.7
Component: Import Keywords: has-patch
Focuses: Cc:


Props: Andy Skelton

When a category is converted to a tag, the category should be removed from the list of categories that populates the category list on /wp-admin/post-new.php

The converted category however persists in the cache, unless the cache is deleted, which this patch achieves.

Attachments (1)

wp-cat2tag-cache.diff (997 bytes) - added by warwickp 15 years ago.

Download all attachments as: .zip

Change History (5)

15 years ago

  • Keywords has-patch added

#2 @ryan
15 years ago

I think that can use clean_term_cache() instead of clearing category_children and last_changed by hand. I'll look.

#3 @ryan
15 years ago

  • Owner set to ryan

#4 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10608]) Make sure cache is clean when converting cats to tags. fixes #9186

Note: See TracTickets for help on using tickets.