#21150 closed defect (bug) (invalid)

Add a way to prevent a term from being deleted

Reported by: wpsmith Owned by:
Priority: normal Milestone:
Component: Taxonomy Version:
Severity: normal Keywords:
Cc:

Description

Currently, WordPress uses an option ('default_category') to prevent the deletion of the default WordPress category. However, someone creates a default term for a custom taxonomy, there is currently no easy method to prevent the deletion of the term.

I propose a simple filter that would enable this.

Attachments (1)

delete_term.patch (544 bytes) - added by wpsmith 11 months ago.

Download all attachments as: .zip

Change History (5)

Just saw this in WP_Terms_List_Table:

$default_term = get_option( 'default_' . $taxonomy );
  • Keywords has-patch 2nd-opinion dev-feedback removed
  • Resolution set to wontfix
  • Status changed from new to closed
  • Resolution wontfix deleted
  • Status changed from closed to reopened
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.