[wp-trac] [WordPress Trac] #54472: Taxonomy: Unregistering taxonomy with default term endlessly regenerates options
WordPress Trac
noreply at wordpress.org
Wed Jul 6 05:09:36 UTC 2022
#54472: Taxonomy: Unregistering taxonomy with default term endlessly regenerates
options
---------------------------------------------+----------------------------
Reporter: dlh | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Taxonomy | Version: 5.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit needs-dev-note | Focuses: performance
---------------------------------------------+----------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"53669" 53669]:
{{{
#!CommitTicketReference repository="" revision="53669"
Taxonomy: Retain default term option when unregistering taxos.
No longer delete the default term option in `unregister_taxonomy()` to
improve database performance.
Since taxonomies are registered at runtime and can't be unregistered
unless they're already registered, prior to this
change the option was created and deleted on each request.
Deleting the option should occur on a one-time opperation such as plugin
deactivation.
Follow up to [48480].
Props dlh.
Fixes #54472.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54472#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list