Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    6060        public function get_items_permissions_check( $request ) {
    6161                if ( ! is_user_logged_in() || ! current_user_can( 'edit_posts' ) ) {
    62                         return new WP_Error( 'rest_user_cannot_view', __( 'Sorry, you are not allowed to view themes.' ), array( 'status' => rest_authorization_required_code() ) );
     62                        return new WP_Error(
     63                                'rest_user_cannot_view',
     64                                __( 'Sorry, you are not allowed to view themes.' ),
     65                                array( 'status' => rest_authorization_required_code() )
     66                        );
    6367                }
    6468
    … …  
    183187
    184188                $this->schema = $schema;
     189
    185190                return $this->add_additional_fields_schema( $this->schema );
    186191        }
Note: See TracChangeset for help on using the changeset viewer.