[wp-trac] [WordPress Trac] #62574: Move default template types and template part areas to REST API
WordPress Trac
noreply at wordpress.org
Thu Feb 13 02:41:03 UTC 2025
#62574: Move default template types and template part areas to REST API
---------------------------------------+-----------------------
Reporter: gigitux | Owner: gigitux
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.8
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch gutenberg-merge | Focuses:
---------------------------------------+-----------------------
Comment (by Mamaduka):
The REST API index is the only option for `read-only` settings until
#48885 is resolved.
> The associated PR doesn't make the fields available to the endpoint by
default which is a little counter intuitive. In order to access them, a
developer must include the usually optional ?_fields parameter.
IIRC, if you request without fields, all fields are returned, including
new fields proposed in this PR.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62574#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list