[wp-trac] [WordPress Trac] #62574: Move default template types and template part areas to REST API

WordPress Trac noreply at wordpress.org
Tue Mar 4 03:10:13 UTC 2025


#62574: Move default template types and template part areas to REST API
-------------------------------------------------+-------------------------
 Reporter:  gigitux                              |       Owner:  Mamaduka
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.8
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch gutenberg-merge has-unit-  |     Focuses:
  tests 2nd-opinion                              |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 I'm happier with the approach of limiting the data to logged in users
 (I've made a caps suggestion on the PR but that is it).

 I'm still unhappy about placing the data in the `wp-json/` endpoint as a
 default because a better place can't be found. The data is strongly theme
 related and there aren't any significant ill-effects by waiting until an
 improved location can be found.

 Behind a login is an improvement because there ''may'' be sensitive data
 in the output, depending on how a third party developer is using them.
 It's low but not no risk.

 My big concern is that we can't use the REST index as a too hard basket
 when data doesn't quite belong anywhere else.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62574#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list