[wp-trac] [WordPress Trac] #63014: Enhance `_wp_after_delete_font_family()` performance using the `fields` argument in `get_children()`.
WordPress Trac
noreply at wordpress.org
Mon Apr 28 20:49:36 UTC 2025
#63014: Enhance `_wp_after_delete_font_family()` performance using the `fields`
argument in `get_children()`.
-------------------------+--------------------------
Reporter: dilipbheda | Owner: flixos90
Type: enhancement | Status: closed
Priority: low | Milestone: 6.9
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: performance
-------------------------+--------------------------
Changes (by flixos90):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"60203" 60203]:
{{{
#!CommitTicketReference repository="" revision="60203"
Query: Avoid unnecessary database query when deleting a font family.
Querying only the font face IDs is sufficient when deleting a font family.
There is no need to warm the caches with the full objects, since
`wp_delete_post()` will always make a direct database query to get the
object anyway.
Props dilipbheda.
Fixes #63014.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63014#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list