[wp-trac] [WordPress Trac] #43517: Adding support of default category term for custom taxonomies
WordPress Trac
noreply at wordpress.org
Tue Jul 14 16:39:59 UTC 2020
#43517: Adding support of default category term for custom taxonomies
------------------------------------+------------------------
Reporter: enrico.sorcinelli | Owner: whyisjake
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.5
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+------------------------
Comment (by SergeyBiryukov):
In [changeset:"48480" 48480]:
{{{
#!CommitTicketReference repository="" revision="48480"
Taxonomy: Make some adjustments to handling default terms for custom
taxonomies:
* Move default term assignment from `wp_set_object_terms()` to
`wp_insert_post()`.
* Make sure the passed taxonomy list overwrites the existing list if not
empty.
* Remove the default term option on `unregister_taxonomy()`.
* Prevent deletion of the default term in `wp_delete_term()`.
Props enrico.sorcinelli, TimothyBlynJacobs.
See #43517.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43517#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list