[wp-trac] [WordPress Trac] #57704: Add revisions to the links of the template and template part REST endpoint

WordPress Trac noreply at wordpress.org
Mon Feb 13 09:53:09 UTC 2023


#57704: Add revisions to the links of the template and template part REST endpoint
--------------------------+-------------------------
 Reporter:  andraganescu  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  high          |  Milestone:  6.2
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 Because templates and template parts are just custom post types we already
 have revisions saved for them. Being able to access and use the revisions
 screen for templates and template parts in block themes therefore seems a
 low hanging fruit enhancement.

 In https://github.com/WordPress/gutenberg/pull/45215 a first step to use
 this available feature has been taken - to simply display a button that
 sends the user to the revisions management screen.

 To be able to achieve this, however, the API requires a decoration of the
 template controller with links that hold the revision count and previous
 revision, because of this bug in
 https://core.trac.wordpress.org/ticket/56922

 To port this change to core we need to bring this decoration over, either
 via a solution similar to the one merged in Gutenberg or via the solution
 explored in https://core.trac.wordpress.org/ticket/56922

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57704>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list