Make WordPress Core


Ignore:
Timestamp:
08/18/2023 05:44:29 PM (11 months 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-menus-controller.php

    r56093 r56415  
    4141     *
    4242     * @param WP_REST_Request $request Full details about the request.
    43      * @return bool|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
     43     * @return true|WP_Error True if the request has read access for the item, otherwise WP_Error object.
    4444     */
    4545    public function get_item_permissions_check( $request ) {
     
    8282     *
    8383     * @param WP_REST_Request $request Full details about the request.
    84      * @return bool|WP_Error Whether the current user has permission.
     84     * @return true|WP_Error True if the current user has permission, WP_Error object otherwise.
    8585     */
    8686    protected function check_has_read_only_access( $request ) {
Note: See TracChangeset for help on using the changeset viewer.