WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/28/2020 12:29:53 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for WP_REST_Attachments_Controller.

This adds a missing DocBlock for ::register_routes() and parameter descriptions for ::post_process_item().

Includes minor documenation fixes in other REST API classes for consistency.

Props dkarfa, mukesh27, SergeyBiryukov.
Fixes #48841.

File:
1 edited

Legend:

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

    r47372 r47391  
    7474
    7575    /**
    76      * Registers routes for autosaves.
     76     * Registers the routes for autosaves.
    7777     *
    7878     * @since 5.0.0
     
    152152     * @since 5.0.0
    153153     *
    154      * @param WP_REST_Request $request Full data about the request.
     154     * @param WP_REST_Request $request Full details about the request.
    155155     * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
    156156     */
     
    250250     * @since 5.0.0
    251251     *
    252      * @param WP_REST_Request $request Full data about the request.
     252     * @param WP_REST_Request $request Full details about the request.
    253253     * @return WP_Post|WP_Error Revision post object if ID is valid, WP_Error otherwise.
    254254     */
     
    285285     * @since 5.0.0
    286286     *
    287      * @param WP_REST_Request $request Full data about the request.
     287     * @param WP_REST_Request $request Full details about the request.
    288288     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
    289289     */
Note: See TracChangeset for help on using the changeset viewer.