Changeset 44777
- Timestamp:
- 02/28/2019 11:48:46 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r44537 r44777 4453 4453 4454 4454 if ( ! current_user_can( 'export_others_personal_data' ) ) { 4455 wp_send_json_error( __( ' Invalid request.' ) );4455 wp_send_json_error( __( 'Sorry, you are not allowed to perform this action.' ) ); 4456 4456 } 4457 4457 … … 4635 4635 // Both capabilities are required to avoid confusion, see `_wp_personal_data_removal_page()`. 4636 4636 if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { 4637 wp_send_json_error( __( ' Invalid request.' ) );4637 wp_send_json_error( __( 'Sorry, you are not allowed to perform this action.' ) ); 4638 4638 } 4639 4639
Note: See TracChangeset
for help on using the changeset viewer.