WordPress.org

Make WordPress Core

Changeset 46068


Ignore:
Timestamp:
09/05/2019 10:58:50 PM (3 months ago)
Author:
SergeyBiryukov
Message:

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

Props dkarfa.
Fixes #47966.

Location:
trunk/src/wp-includes/rest-api/endpoints
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r45932 r46068  
    132132     * @since 4.7.0
    133133     *
    134      * @param  WP_REST_Request $request Full details about the request.
     134     * @param WP_REST_Request $request Full details about the request.
    135135     * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
    136136     */
     
    18101810     * @since 4.9.8
    18111811     *
    1812      * @param WP_Post $post Post object.
    1813      * @param WP_REST_Request Request object.
    1814      *
     1812     * @param WP_Post         $post    Post object.
     1813     * @param WP_REST_Request $request Request object.
    18151814     * @return array List of link relations.
    18161815     */
     
    25632562     * @since 4.7.0
    25642563     *
    2565      * @param  string|array    $statuses  One or more post statuses.
    2566      * @param  WP_REST_Request $request   Full details about the request.
    2567      * @param  string          $parameter Additional parameter to pass to validation.
     2564     * @param string|array    $statuses  One or more post statuses.
     2565     * @param WP_REST_Request $request   Full details about the request.
     2566     * @param string          $parameter Additional parameter to pass to validation.
    25682567     * @return array|WP_Error A list of valid statuses, otherwise WP_Error object.
    25692568     */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

    r45812 r46068  
    131131     * @since 4.7.2
    132132     *
    133      * @param int $id Supplied ID.
     133     * @param int $parent Supplied ID.
    134134     * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise.
    135135     */
Note: See TracChangeset for help on using the changeset viewer.