Opened 4 years ago
Last modified 4 years ago
#51264 new defect (bug)
There is no option to remove default_term using register_taxonomy() or unregister_taxonomy()
Reported by: | danielpietrasik | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
- I registered a new taxonomy using register_taxonomy() function.
- I set
default_term
.
- After that i removed
default_term
(I changed my mind).
The function 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 register_taxonomy().
The function unregister_taxonomy() also doesn't work.
Change History (3)
Note: See
TracTickets for help on using
tickets.
If we know that
default_term
already exists. We can use delete_option to removedefault_term
, but in my opinion its not a good solution. The delete_option should be build-in in register_taxonomy() function or/and unregister_taxonomy() function.