Skip to content

Site Editor: Revert addition of template types and areas to the REST API index. #69195

@peterwilsoncc

Description

@peterwilsoncc

In #66459, the temple types and areas data was added to the index for the REST API, ie /wp-json.

As this data isn't needed for public access, I'd like to revert the change and continue to use the settings for WordPress 6.8. While the data is relatively safe by default, themes or plugins may use templates in such a way that adds potentially revealing information to a site. (Woo currently adds the mini cart too template types, relatively harmless, but as they move to the block editor more risky info may be added.)

I think it would be best to use the previous approach until Core-48885 is resolved and read-only access is added to the settings endpoint to allow for the data to be exposed to theme editors without the ability to manage options.

This change would move the following off the WordPress 6.8 milestone:

Metadata

Metadata

Assignees

Labels

REST API InteractionRelated to REST API[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Status] In ProgressTracking issues with work in progress

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions