- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r46586 r47122 60 60 public function get_items_permissions_check( $request ) { 61 61 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 ); 63 67 } 64 68 … … 183 187 184 188 $this->schema = $schema; 189 185 190 return $this->add_additional_fields_schema( $this->schema ); 186 191 }
Note: See TracChangeset
for help on using the changeset viewer.