Make WordPress Core

Opened 10 hours ago

Last modified 10 hours ago

#63014 new defect (bug)

Enhance `_wp_after_delete_font_family()` performance using the `fields` argument in `get_children()`.

Reported by: dilipbheda's profile dilipbheda Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch
Focuses: performance Cc:

Description

The _wp_after_delete_font_family() function can be optimized by leveraging the fields argument in the get_children() function. Currently, the function retrieves unnecessary data, which affects performance.

Since we use only the ID field in the wp_delete_post() function from the get_children() object, adding the fields argument will limit the query to fetch only the required IDs, improving both performance and efficiency.

Change History (1)

This ticket was mentioned in PR #8407 on WordPress/wordpress-develop by @dilipbheda.


10 hours ago
#1

Note: See TracTickets for help on using tickets.