Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (6 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-terms-controller.php

    r49922 r49927  
    141141         *
    142142         * @param WP_REST_Request $request Full details about the request.
    143          * @return bool|WP_Error True if the request has read access, otherwise false or WP_Error object.
     143         * @return true|WP_Error True if the request has read access, otherwise false or WP_Error object.
    144144         */
    145145        public function get_items_permissions_check( $request ) {
    … …  
    348348         *
    349349         * @param WP_REST_Request $request Full details about the request.
    350          * @return bool|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
     350         * @return true|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
    351351         */
    352352        public function get_item_permissions_check( $request ) {
    … …  
    393393         *
    394394         * @param WP_REST_Request $request Full details about the request.
    395          * @return bool|WP_Error True if the request has access to create items, false or WP_Error object otherwise.
     395         * @return true|WP_Error True if the request has access to create items, false or WP_Error object otherwise.
    396396         */
    397397        public function create_item_permissions_check( $request ) {
    … …  
    529529         *
    530530         * @param WP_REST_Request $request Full details about the request.
    531          * @return bool|WP_Error True if the request has access to update the item, false or WP_Error object otherwise.
     531         * @return true|WP_Error True if the request has access to update the item, false or WP_Error object otherwise.
    532532         */
    533533        public function update_item_permissions_check( $request ) {
    … …  
    630630         *
    631631         * @param WP_REST_Request $request Full details about the request.
    632          * @return bool|WP_Error True if the request has access to delete the item, otherwise false or WP_Error object.
     632         * @return true|WP_Error True if the request has access to delete the item, otherwise false or WP_Error object.
    633633         */
    634634        public function delete_item_permissions_check( $request ) {
Note: See TracChangeset for help on using the changeset viewer.