[wp-trac] [WordPress Trac] #56922: Template / Template parts revision / autosave REST API are broken

WordPress Trac noreply at wordpress.org
Mon Sep 25 14:06:44 UTC 2023


#56922: Template / Template parts revision / autosave REST API are broken
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.4
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  rest-api
  testing changes-requested                      |
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * keywords:  has-patch has-unit-tests needs-testing => has-patch has-unit-
     tests needs-testing changes-requested


Comment:

 @antonvlasenko Your PR doesn't fix the problem. Let me explain.

 The url pattern for template / template part is like this.

 ```
 wp/v2/template-parts/twentytwentythree//footer
 ```

 They do not use id based lookups. Meaning the urls are broken. This is why
 this needed a custom controller.

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


More information about the wp-trac mailing list