[wp-trac] [WordPress Trac] #50152: Return all themes into the themes REST API
WordPress Trac
noreply at wordpress.org
Fri Mar 6 18:02:54 UTC 2026
#50152: Return all themes into the themes REST API
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.7
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests early | Focuses: rest-api
commit has-dev-note |
-------------------------------------------------+-------------------------
Comment (by westonruter):
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/50152#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list