Opened 3 weeks ago
Last modified 3 weeks ago
#58327 new enhancement
Remove unneeded sanitize term in `populate_terms` method
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 6.0 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | performance | Cc: |
Description
In [52836] ( #37189 ) the WP_Term_Query class was converted to just get ids and then convert those ids into WP_Term objects using get_term. But in the case where fields all_with_object_id
is passed, this results in lots of calls to sanitize_term. These calls can be extensive and effect performance. all_with_object_id
expects an object as a result, but does not necessarily need to be sanitized.
Change History (1)
This ticket was mentioned in PR #4460 on WordPress/wordpress-develop by @spacedmonkey.
3 weeks ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/58327