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-menu-items-controller.php

    r56093 r56415  
    5858         *
    5959         * @param WP_REST_Request $request Full details about the request.
    60          * @return bool|WP_Error True if the request has read access for the item, WP_Error object otherwise.
     60         * @return bool|WP_Error True if the request has read access for the item, WP_Error object or false otherwise.
    6161         */
    6262        public function get_item_permissions_check( $request ) {
     
    7878         *
    7979         * @param WP_REST_Request $request Full details about the request.
    80          * @return bool|WP_Error Whether the current user has permission.
     80         * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
    8181         */
    8282        protected function check_has_read_only_access( $request ) {
Note: See TracChangeset for help on using the changeset viewer.