[wp-trac] [WordPress Trac] #64719: Optimize themes REST collection request when querying active theme
WordPress Trac
noreply at wordpress.org
Fri Mar 6 18:02:54 UTC 2026
#64719: Optimize themes REST collection request when querying active theme
---------------------------------------------+-----------------------------
Reporter: aduth | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: REST API | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api,
| performance
---------------------------------------------+-----------------------------
Changes (by westonruter):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"61856" 61856]:
{{{
#!CommitTicketReference repository="" revision="61856"
REST API: Optimize themes collection response when querying active theme.
This updates `WP_REST_Themes_Controller::get_items()` to shortcut
returning the current theme when the request explicitly queries for the
active theme, avoiding expensive call to `wp_get_themes()`.
Developed in https://github.com/WordPress/wordpress-develop/pull/11032
Follow up to r49925.
Props aduth, mukesh27, westonruter.
See #50152.
Fixes #64719.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64719#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list