diff --git src/wp-includes/user.php src/wp-includes/user.php
index 064f514..edb34bf 100644
|
|
function _wp_privacy_send_erasure_fulfillment_notification( $request_id ) { |
3143 | 3143 | return; |
3144 | 3144 | } |
3145 | 3145 | |
| 3146 | // Localize message content for user; fallback to site default for visitors. |
| 3147 | if ( ! empty( $request->user_id ) ) { |
| 3148 | $locale = get_user_locale( $request->user_id ); |
| 3149 | } else { |
| 3150 | $locale = get_locale(); |
| 3151 | } |
| 3152 | |
| 3153 | $switched_locale = switch_to_locale( $locale ); |
| 3154 | |
3146 | 3155 | /** |
3147 | 3156 | * Filters the recipient of the data erasure fulfillment notification. |
3148 | 3157 | * |
… |
… |
All at ###SITENAME### |
3253 | 3262 | |
3254 | 3263 | $email_sent = wp_mail( $user_email, $subject, $content ); |
3255 | 3264 | |
| 3265 | if ( $switched_locale ) { |
| 3266 | restore_previous_locale(); |
| 3267 | } |
| 3268 | |
3256 | 3269 | if ( $email_sent ) { |
3257 | 3270 | update_post_meta( $request_id, '_wp_user_notified', true ); |
3258 | 3271 | } |