[wp-trac] [WordPress Trac] #44321: REST API: Expose revision count and last revision ID on Post response

WordPress Trac noreply at wordpress.org
Fri Jun 22 13:33:17 UTC 2018


#44321: REST API: Expose revision count and last revision ID on Post response
--------------------------------------+---------------------
 Reporter:  danielbachhuber           |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.9.7
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by danielbachhuber):

 * keywords:  dev-feedback needs-unit-tests has-patch => has-patch has-unit-
     tests
 * milestone:  4.9.8 => 4.9.7


Comment:

 In `44321.2.diff`:

 * Uses `'fields' => 'ids'` when fetching revisions to improve performance.
 * Includes `id` attribute in `predecessor` to avoid needing to parse a
 URL.
 * Adds unit tests.

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


More information about the wp-trac mailing list