[wp-trac] [WordPress Trac] #55857: Usage of wp_get_post_revisions in WP_REST_Posts_Controller
WordPress Trac
noreply at wordpress.org
Sat Jul 23 15:40:26 UTC 2022
#55857: Usage of wp_get_post_revisions in WP_REST_Posts_Controller
--------------------------------------+------------------------------------
Reporter: furi3r | Owner: spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: rest-api, performance
--------------------------------------+------------------------------------
Comment (by SergeyBiryukov):
In [changeset:"53769" 53769]:
{{{
#!CommitTicketReference repository="" revision="53769"
Revisions: Correct the function name for retrieving the last revision ID
and total count.
Includes:
* Renaming the function to `wp_get_last_revision_id_and_total_count()`.
* Making the default value for `$post` consistent with
`wp_get_post_revisions()`.
* Making `WP_Error` codes more specific and using them in test assertions.
* Adjusting the function description per the documentation standards.
Follow-up to [53759].
Props JustinSainton, SergeyBiryukov.
See #55857.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55857#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list