Make WordPress Core


Ignore:
Timestamp:
06/30/2021 05:58:03 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: List the expected type first instead of WP_Error in some REST API methods added in 5.8.

Follow-up to [46696], [49929], [50995], [51021].

See #52628, #53461.

File:
1 edited

Legend:

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

    r51280 r51286  
    5858     * @param WP_REST_Request $request Full details about the request.
    5959     *
    60      * @return WP_Error|bool True if the request has permission, WP_Error object otherwise.
     60     * @return true|WP_Error True if the request has permission, WP_Error object otherwise.
    6161     */
    6262    public function get_items_permissions_check( $request ) {
     
    8585     * @param WP_REST_Request $request Full details about the request.
    8686     *
    87      * @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure.
     87     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
    8888     */
    8989    public function get_items( $request ) {
Note: See TracChangeset for help on using the changeset viewer.