Docs: Correct DocBlocks for WP_REST_Posts_Controller::get_available_actions() and WP_REST_Revisions_Controller::get_parent().

Props dkarfa.
Fixes #47966.

git-svn-id: https://develop.svn.wordpress.org/trunk@46068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-09-05 22:58:50 +00:00
parent 58dd5e793f
commit 32086d74fc
2 changed files with 7 additions and 8 deletions

View File

@ -1810,8 +1810,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
* @since 4.9.8
*
* @param WP_Post $post Post object.
* @param WP_REST_Request Request object.
*
* @param WP_REST_Request $request Request object.
* @return array List of link relations.
*/
protected function get_available_actions( $post, $request ) {

View File

@ -130,7 +130,7 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller {
*
* @since 4.7.2
*
* @param int $id Supplied ID.
* @param int $parent Supplied ID.
* @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
*/
protected function get_parent( $parent ) {