mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-02 03:19:28 +00:00
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 5.0 branch. Fixes #40510. Built from https://develop.svn.wordpress.org/branches/5.0@43716 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43545 1a063a9b-81f0-0310-95a4-ce76da25c4cd