Make WordPress Core


Ignore:
Timestamp:
08/18/2023 05:44:29 PM (3 years ago)
Author:
johnbillion
Message:

REST API: Correct the docblocks for various permission related methods.

See #58833

File:
1 edited

Legend:

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

    r54891 r56415  
    180180     *
    181181     * @param WP_REST_Request $request Full details about the request.
    182      * @return true|WP_Error True if the request has read access, otherwise false or WP_Error object.
     182     * @return bool|WP_Error True if the request has read access, otherwise false or WP_Error object.
    183183     */
    184184    public function get_items_permissions_check( $request ) {
     
    418418     *
    419419     * @param WP_REST_Request $request Full details about the request.
    420      * @return true|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
     420     * @return true|WP_Error True if the request has read access for the item, otherwise WP_Error object.
    421421     */
    422422    public function get_item_permissions_check( $request ) {
Note: See TracChangeset for help on using the changeset viewer.