[wp-trac] [WordPress Trac] #55857: Usage of wp_get_post_revisions in WP_REST_Posts_Controller

WordPress Trac noreply at wordpress.org
Mon Jul 25 19:18:55 UTC 2022

#55857: Usage of wp_get_post_revisions in WP_REST_Posts_Controller
 Reporter:  furi3r                    |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.1
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api, performance

Comment (by SergeyBiryukov):

 In [changeset:"53778" 53778]:
 #!CommitTicketReference repository="" revision="53778"
 Revisions: Rename the function for retrieving the latest revision ID and
 total count.

 The new name is `wp_get_latest_revision_id_and_total_count()`.

 This aims to reduce ambiguity about what exactly is the "first" or "last"
 revision, and bring more consistency with similar wording elsewhere in
 core, e.g. latest posts, latest comments, etc.

 Follow-up to [53759], [53769].

 Props peterwilsoncc.
 See #55857.

Ticket URL: <https://core.trac.wordpress.org/ticket/55857#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list