Ticket #44084: file.diff
File file.diff, 715 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/includes/file.php
2365 2365 // Clear the grouped data now that it is no longer needed. 2366 2366 delete_post_meta( $request_id, '_export_data_grouped' ); 2367 2367 2368 // Set user locale if user exists. 2369 $user = get_user_by( 'email', $email_address ); 2370 if ( $user instanceof WP_User ) { 2371 $locale = get_user_locale( $user->ID ); 2372 load_default_textdomain( $locale ); 2373 } 2374 2368 2375 // If the destination is email, send it now. 2369 2376 if ( $send_as_email ) { 2370 2377 $mail_success = wp_privacy_send_personal_data_export_email( $request_id );