WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months 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-block-types-controller.php

    r49225 r49927  
    115115     *
    116116     * @param WP_REST_Request $request Full details about the request.
    117      * @return WP_Error|bool True if the request has read access, WP_Error object otherwise.
     117     * @return WP_Error|true True if the request has read access, WP_Error object otherwise.
    118118     */
    119119    public function get_items_permissions_check( $request ) {
     
    161161     *
    162162     * @param WP_REST_Request $request Full details about the request.
    163      * @return WP_Error|bool True if the request has read access for the item, WP_Error object otherwise.
     163     * @return WP_Error|true True if the request has read access for the item, WP_Error object otherwise.
    164164     */
    165165    public function get_item_permissions_check( $request ) {
     
    182182     * @since 5.5.0
    183183     *
    184      * @return WP_Error|bool True if the block type is visible, WP_Error otherwise.
     184     * @return WP_Error|true True if the block type is visible, WP_Error otherwise.
    185185     */
    186186    protected function check_read_permission() {
Note: See TracChangeset for help on using the changeset viewer.