WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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 Owned by: 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 6 years ago.

Download all attachments as: .zip

Change History (5)

@warwickp6 years ago

comment:1 @FFEMTcJ6 years ago

  • Keywords has-patch added

comment:2 @ryan6 years ago

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

comment:3 @ryan6 years ago

  • Owner set to ryan

comment:4 @ryan6 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.