Changeset 49090
- Timestamp:
- 10/04/2020 03:21:38 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
src/wp-admin/erase-personal-data.php (modified) (1 diff)
-
src/wp-admin/includes/privacy-tools.php (modified) (16 diffs)
-
src/wp-admin/options-privacy.php (modified) (1 diff)
-
src/wp-admin/privacy-policy-guide.php (modified) (1 diff)
-
src/wp-includes/user.php (modified) (5 diffs)
-
tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php (modified) (4 diffs)
-
tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/erase-personal-data.php
r48468 r49090 11 11 12 12 if ( ! current_user_can( 'erase_others_personal_data' ) || ! current_user_can( 'delete_users' ) ) { 13 wp_die( __( 'Sorry, you are not allowed to erase data on this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to erase personal data on this site.' ) ); 14 14 } 15 15 -
trunk/src/wp-admin/includes/privacy-tools.php
r49026 r49090 21 21 22 22 if ( ! $request || 'user_request' !== $request->post_type ) { 23 return new WP_Error( 'privacy_request_error', __( 'Invalid request.' ) );23 return new WP_Error( 'privacy_request_error', __( 'Invalid user privacy request.' ) ); 24 24 } 25 25 … … 29 29 return $result; 30 30 } elseif ( ! $result ) { 31 return new WP_Error( 'privacy_request_error', __( 'Unable to initiate confirmation request.' ) );31 return new WP_Error( 'privacy_request_error', __( 'Unable to initiate user privacy confirmation request.' ) ); 32 32 } 33 33 … … 50 50 51 51 if ( ! $request ) { 52 return new WP_Error( 'privacy_request_error', __( 'Invalid request.' ) );52 return new WP_Error( 'privacy_request_error', __( 'Invalid user privacy request.' ) ); 53 53 } 54 54 … … 105 105 'action_type', 106 106 'action_type', 107 __( 'Invalid action.' ),107 __( 'Invalid user privacy action.' ), 108 108 'error' 109 109 ); … … 117 117 'action_type', 118 118 'action_type', 119 __( 'Invalid action.' ),119 __( 'Invalid user privacy action.' ), 120 120 'error' 121 121 ); … … 298 298 function wp_privacy_generate_personal_data_export_file( $request_id ) { 299 299 if ( ! class_exists( 'ZipArchive' ) ) { 300 wp_send_json_error( __( 'Unable to generate export file. ZipArchive not available.' ) );300 wp_send_json_error( __( 'Unable to generate user privacy export file. ZipArchive not available.' ) ); 301 301 } 302 302 … … 305 305 306 306 if ( ! $request || 'export_personal_data' !== $request->action_name ) { 307 wp_send_json_error( __( 'Invalid request ID when generating export file.' ) );307 wp_send_json_error( __( 'Invalid request ID when generating user privacy export file.' ) ); 308 308 } 309 309 …