Docs: Correct DocBlocks for WP_REST_Posts_Controller::get_available_actions()
and WP_REST_Revisions_Controller::get_parent()
.
Props dkarfa. Fixes #47966. Built from https://develop.svn.wordpress.org/trunk@46068 git-svn-id: http://core.svn.wordpress.org/trunk@45880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee005d8fc5
commit
7fb9cba55a
@ -1810,8 +1810,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
|||||||
* @since 4.9.8
|
* @since 4.9.8
|
||||||
*
|
*
|
||||||
* @param WP_Post $post Post object.
|
* @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.
|
* @return array List of link relations.
|
||||||
*/
|
*/
|
||||||
protected function get_available_actions( $post, $request ) {
|
protected function get_available_actions( $post, $request ) {
|
||||||
|
@ -130,7 +130,7 @@ class WP_REST_Revisions_Controller extends WP_REST_Controller {
|
|||||||
*
|
*
|
||||||
* @since 4.7.2
|
* @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.
|
* @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
|
||||||
*/
|
*/
|
||||||
protected function get_parent( $parent ) {
|
protected function get_parent( $parent ) {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46067';
|
$wp_version = '5.3-alpha-46068';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user