Changeset 48534
- Timestamp:
- 07/21/2020 02:40:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r48475 r48534 5325 5325 case 'plugin': 5326 5326 if ( ! current_user_can( 'update_plugins' ) ) { 5327 $error_message = __( ' You do not have permissionto modify plugins.' );5327 $error_message = __( 'Sorry, you are not allowed to modify plugins.' ); 5328 5328 wp_send_json_error( array( 'error' => $error_message ) ); 5329 5329 } … … 5335 5335 case 'theme': 5336 5336 if ( ! current_user_can( 'update_themes' ) ) { 5337 $error_message = __( ' You do not have permissionto modify themes.' );5337 $error_message = __( 'Sorry, you are not allowed to modify themes.' ); 5338 5338 wp_send_json_error( array( 'error' => $error_message ) ); 5339 5339 }
Note: See TracChangeset
for help on using the changeset viewer.