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-posts-controller.php

    r56193 r56415  
    476476         *
    477477         * @param WP_REST_Request $request Full details about the request.
    478          * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
     478         * @return bool|WP_Error True if the request has read access for the item, WP_Error object or false otherwise.
    479479         */
    480480        public function get_item_permissions_check( $request ) {
     
    15071507         * @param string          $template Page template filename.
    15081508         * @param WP_REST_Request $request  Request.
    1509          * @return bool|WP_Error True if template is still valid or if the same as existing value, or false if template not supported.
     1509         * @return true|WP_Error True if template is still valid or if the same as existing value, or a WP_Error if template not supported.
    15101510         */
    15111511        public function check_template( $template, $request ) {
Note: See TracChangeset for help on using the changeset viewer.