Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

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

    r49610 r49927  
    363363     *
    364364     * @param WP_REST_Request $request Full details about the request.
    365      * @return bool|WP_Error True if the request has read access for the item, WP_Error object otherwise.
     365     * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
    366366     */
    367367    public function get_item_permissions_check( $request ) {
     
    398398     *
    399399     * @param WP_REST_Request $request Full details about the request.
    400      * @return bool|WP_Error True if the request has access to delete the item, WP_Error object otherwise.
     400     * @return true|WP_Error True if the request has access to delete the item, WP_Error object otherwise.
    401401     */
    402402    public function delete_item_permissions_check( $request ) {
Note: See TracChangeset for help on using the changeset viewer.