Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 15 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:

Description

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 16 years ago.

Download all attachments as: .zip

Change History (5)

#1 @FFEMTcJ
16 years ago

  • Keywords has-patch added

#2 @ryan
16 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
16 years ago

  • Owner set to ryan

#4 @ryan
16 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.