Changeset 45062 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 03/28/2019 09:28:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r44966 r45062 2354 2354 } 2355 2355 2356 // Localize message content for user; fallback to site default for visitors. 2357 if ( ! empty( $request->user_id ) ) { 2358 $locale = get_user_locale( $request->user_id ); 2359 } else { 2360 $locale = get_locale(); 2361 } 2362 2363 $switched_locale = switch_to_locale( $locale ); 2364 2356 2365 /** This filter is documented in wp-includes/functions.php */ 2357 2366 $expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS ); … … 2409 2418 $content 2410 2419 ); 2420 2421 if ( $switched_locale ) { 2422 restore_previous_locale(); 2423 } 2411 2424 2412 2425 if ( ! $mail_success ) {
Note: See TracChangeset
for help on using the changeset viewer.