WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/13/2018 04:31:31 PM (16 months ago)
Author:
SergeyBiryukov
Message:

Privacy: Ensure the user request email is sent in the requested user's locale (or the site's default locale if they are not a registered user) when the administrator creating the request uses a different locale.

Props desrosj, Chouby, iandunn, lbenicio, birgire, earnjam, swissspidy, garrett-eclipse.
Fixes #43985.

File:
1 edited

Legend:

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

    r43527 r43568  
    21972197
    21982198    if ( ! $request || 'export_personal_data' !== $request->action_name ) {
    2199         return new WP_Error( 'invalid', __( 'Invalid request ID when sending personal data export email.' ) );
     2199        return new WP_Error( 'invalid_request', __( 'Invalid request ID when sending personal data export email.' ) );
    22002200    }
    22012201
     
    22572257
    22582258    if ( ! $mail_success ) {
    2259         return new WP_Error( 'error', __( 'Unable to send personal data export email.' ) );
     2259        return new WP_Error( 'privacy_email_error', __( 'Unable to send personal data export email.' ) );
    22602260    }
    22612261
Note: See TracChangeset for help on using the changeset viewer.