Make WordPress Core


Ignore:
Timestamp:
07/10/2024 11:10:44 AM (19 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return values for a few REST API class methods.

Includes listing the expected type first, instead of WP_Error.

Follow-up to [39031], [39033], [46696], [49927], [49929], [50993], [51286], [51973], [52079], [52286], [53152], [56415].

Props antonvlasenko.
See #61593.

File:
1 edited

Legend:

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

    r57648 r58704  
    463463     *
    464464     * @param WP_REST_Request $request Full details about the request.
    465      * @return true|WP_Error True if the request has access to create items, false or WP_Error object otherwise.
     465     * @return bool|WP_Error True if the request has access to create items, otherwise false or WP_Error object.
    466466     */
    467467    public function create_item_permissions_check( $request ) {
Note: See TracChangeset for help on using the changeset viewer.