WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2018 09:00:16 PM (12 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.
Merges [43568] to the 4.9 branch.
Fixes #43985.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/file.php

    r43528 r43614  
    20602060
    20612061    if ( ! $request || 'export_personal_data' !== $request->action_name ) {
    2062         return new WP_Error( 'invalid', __( 'Invalid request ID when sending personal data export email.' ) );
     2062        return new WP_Error( 'invalid_request', __( 'Invalid request ID when sending personal data export email.' ) );
    20632063    }
    20642064
     
    21202120
    21212121    if ( ! $mail_success ) {
    2122         return new WP_Error( 'error', __( 'Unable to send personal data export email.' ) );
     2122        return new WP_Error( 'privacy_email_error', __( 'Unable to send personal data export email.' ) );
    21232123    }
    21242124
Note: See TracChangeset for help on using the changeset viewer.