Resolve duplicate preloading of REST API index #6539
Labels
REST API Interaction
Related to REST API
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Enhancement
A suggestion for improvement.
Milestone
In #6434, we began loading
/
into the default store. However, the REST API index is also loaded intowpApiSettings.schema
.In the interest of not repeating ourselves, we should only load this data once. We have at least a couple of options:
wpApiSettings.schema
, instead of making the sec/wp/v2/themes/current
endpoint, movetheme_supports
data into that response, and use it instead.The text was updated successfully, but these errors were encountered: