Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9355 closed enhancement (fixed)

wp_delete_term should allow you to force a new term to be applied to all objects

Reported by: westi's profile westi Owned by: westi's profile westi
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: Cc:

Description

This makes it easy to merge categories or tags from a plugin

Change History (3)

#1 @westi
16 years ago

Example usage of feature

wp_delete_term(5,'category',array('default' => 4, 'force_default' => true));

Deletes category id 5 and sets all posts to be in 4.

#2 @westi
16 years ago

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

(In [10813]) Allow wp_delete_term users to force all objects to have a new term applied. Allow for category merging use-case. Fixes #9355.

#3 @jeremyclarke
16 years ago

It's already marked as fixed but I just wanted to confirm that this works as intended. Thanks so much for the fast work westi!

Note: See TracTickets for help on using tickets.