[wp-trac] [WordPress Trac] #64090: Unexpected DB query when inserting a non-hierarchical term
WordPress Trac
noreply at wordpress.org
Wed Oct 15 00:40:23 UTC 2025
#64090: Unexpected DB query when inserting a non-hierarchical term
-------------------------------------------------+-------------------------
Reporter: Chouby | Owner:
| spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: needs-unit-tests good-first-bug | Focuses:
has-patch | performance
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"60933" 60933]:
{{{
#!CommitTicketReference repository="" revision="60933"
Taxonomy: Bypass clearing taxonomy hierarchy for non-hierarchical
taxonomies.
Modifies `clean_taxonomy_cache()` to bypass attempting to delete the
`{$taxonomy}_children` option for non-hierarchical taxonomies, such as
tags.
This removes a needless database query within `delete_option()` to
determine if the `{$taxonomy}_children` option is set. It isn't.
Props: chouby, mukesh27, rollybueno, sabernhardt, shailu25, spacedmonkey,
westonruter.
Fixes #64090.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64090#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list