[wp-trac] [WordPress Trac] #57701: Do not prime term meta in `wp_get_object_terms`
WordPress Trac
noreply at wordpress.org
Tue May 16 12:29:48 UTC 2023
#57701: Do not prime term meta in `wp_get_object_terms`
--------------------------------------+---------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Taxonomy | Version: 6.2
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses: performance
--------------------------------------+---------------------------
Changes (by spacedmonkey):
* owner: (none) => spacedmonkey
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55759" 55759]:
{{{
#!CommitTicketReference repository="" revision="55759"
Taxonomy: Do not prime term meta in `wp_get_object_terms`.
Passing `update_term_meta_cache` argument value false by default resulting
in `get_terms` to not prime the term meta cache in `wp_get_object_terms`.
Priming of term meta is not needed in this context.
Props spacedmonkey, rutviksavsani.
Fixes #57701.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57701#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list