Changeset 52340 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php
- Timestamp:
- 12/07/2021 06:36:29 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php
r52286 r52340 55 55 public function permissions_check() { 56 56 if ( ! current_user_can( 'edit_theme_options' ) ) { 57 new WP_Error(58 'rest_cannot_ view_url_details',57 return new WP_Error( 58 'rest_cannot_export_templates', 59 59 __( 'Sorry, you are not allowed to export templates and template parts.' ), 60 60 array( 'status' => rest_authorization_required_code() )
Note: See TracChangeset
for help on using the changeset viewer.