Make WordPress Core


Ignore:
Timestamp:
01/17/2021 05:45:01 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Use more consistent wording for strings related to personal data requests.

This replaces "user privacy" in various error messages with "personal data", for consistency with other existing strings.

Follow-up to [49090].

Props xkon, transl8or.
Fixes #51849.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r49935 r49970  
    31243124
    31253125/**
    3126  * Get all user privacy request types.
     3126 * Get all personal data request types.
    31273127 *
    31283128 * @since 4.9.6
    … …  
    38063806
    38073807        if ( $requests_query->found_posts ) {
    3808                 return new WP_Error( 'duplicate_request', __( 'An incomplete user privacy request for this email address already exists.' ) );
     3808                return new WP_Error( 'duplicate_request', __( 'An incomplete personal data request for this email address already exists.' ) );
    38093809        }
    38103810
    … …  
    38743874
    38753875        if ( ! $request ) {
    3876                 return new WP_Error( 'invalid_request', __( 'Invalid user privacy request.' ) );
     3876                return new WP_Error( 'invalid_request', __( 'Invalid personal data request.' ) );
    38773877        }
    38783878
    … …  
    40624062
    40634063        if ( ! $request || ! $saved_key || ! $key_request_time ) {
    4064                 return new WP_Error( 'invalid_request', __( 'Invalid user privacy request.' ) );
     4064                return new WP_Error( 'invalid_request', __( 'Invalid personal data request.' ) );
    40654065        }
    40664066
    40674067        if ( ! in_array( $request->status, array( 'request-pending', 'request-failed' ), true ) ) {
    4068                 return new WP_Error( 'expired_request', __( 'This user privacy request has expired.' ) );
     4068                return new WP_Error( 'expired_request', __( 'This personal data request has expired.' ) );
    40694069        }
    40704070
    40714071        if ( empty( $key ) ) {
    4072                 return new WP_Error( 'missing_key', __( 'This user privacy request is missing the confirmation key.' ) );
     4072                return new WP_Error( 'missing_key', __( 'The confirmation key is missing from this personal data request.' ) );
    40734073        }
    40744074
    … …  
    40894089
    40904090        if ( ! $wp_hasher->CheckPassword( $key, $saved_key ) ) {
    4091                 return new WP_Error( 'invalid_key', __( 'This user privacy request confirmation key is invalid.' ) );
     4091                return new WP_Error( 'invalid_key', __( 'The confirmation key is invalid for this personal data request.' ) );
    40924092        }
    40934093
    40944094        if ( ! $expiration_time || time() > $expiration_time ) {
    4095                 return new WP_Error( 'expired_key', __( 'This user privacy request confirmation key has expired.' ) );
     4095                return new WP_Error( 'expired_key', __( 'The confirmation key has expired for this personal data request.' ) );
    40964096        }
    40974097
Note: See TracChangeset for help on using the changeset viewer.