[wp-trac] [WordPress Trac] #51264: There is no option to remove default_term using register_taxonomy() or unregister_taxonomy()

WordPress Trac noreply at wordpress.org
Tue Sep 8 09:19:42 UTC 2020


#51264: There is no option to remove default_term using register_taxonomy() or
unregister_taxonomy()
-----------------------------+-----------------------------
 Reporter:  danielpietrasik  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 1. I registered a new taxonomy using
 [https://developer.wordpress.org/reference/functions/register_taxonomy/
 register_taxonomy()] function.

 2. I set {{{default_term}}}.

 3. After that i removed {{{default_term}}} (I changed my mind).

 The function
 [https://developer.wordpress.org/reference/functions/register_taxonomy/
 register_taxonomy()] did not remove {{{default_term}}}. The
 {{{default_term}}} is still selected.

 It's not possible to clear old value of {{{default_term}}} by
 [https://developer.wordpress.org/reference/functions/register_taxonomy/
 register_taxonomy()].

 The function
 [https://developer.wordpress.org/reference/functions/unregister_taxonomy/
 unregister_taxonomy()] also doesn't work.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51264>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list