[wp-trac] [WordPress Trac] #40510: REST API: Post Revisions: Adding support for pagination

WordPress Trac noreply at wordpress.org
Tue Sep 18 03:54:23 UTC 2018


#40510: REST API: Post Revisions: Adding support for pagination
-------------------------------------------------+-------------------------
 Reporter:  benoitperson                         |       Owner:  flixos90
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.9.9
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-      |     Focuses:  rest-api
  major commit                                   |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43648" 43648]:
 {{{
 #!CommitTicketReference repository="" revision="43648"
 REST API: Support pagination, order, search and other common query
 parameters for revisions.

 The original REST API revisions controller relied on
 `wp_get_post_revisions()`, getting all revisions of a post without any
 possibility to restrict the result. This changeset replaces that function
 call with a proper `WP_Query` setup, replicating how
 `wp_get_post_revisions()` works while offering parameters to alter the
 default behavior.

 Props adamsilverstein, birgire, flixos90.
 Merges [43584-43586], [43647] to the 4.9 branch.
 Fixes #40510.
 }}}

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


More information about the wp-trac mailing list