Changeset 45039 for trunk/src/wp-includes/user.php
- Timestamp:
- 03/27/2019 07:41:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r44930 r45039 3141 3141 } 3142 3142 3143 // Localize message content for user; fallback to site default for visitors. 3144 if ( ! empty( $request->user_id ) ) { 3145 $locale = get_user_locale( $request->user_id ); 3146 } else { 3147 $locale = get_locale(); 3148 } 3149 3150 $switched_locale = switch_to_locale( $locale ); 3151 3143 3152 /** 3144 3153 * Filters the recipient of the data erasure fulfillment notification. … … 3250 3259 3251 3260 $email_sent = wp_mail( $user_email, $subject, $content ); 3261 3262 if ( $switched_locale ) { 3263 restore_previous_locale(); 3264 } 3252 3265 3253 3266 if ( $email_sent ) {
Note: See TracChangeset
for help on using the changeset viewer.