Changeset 55161 for trunk/src/wp-admin/includes/privacy-tools.php
- Timestamp:
- 01/30/2023 10:25:53 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/privacy-tools.php
r54891 r55161 596 596 // Localize message content for user; fallback to site default for visitors. 597 597 if ( ! empty( $request->user_id ) ) { 598 $ locale = get_user_locale( $request->user_id );598 $switched_locale = switch_to_user_locale( $request->user_id ); 599 599 } else { 600 $locale = get_locale(); 601 } 602 603 $switched_locale = switch_to_locale( $locale ); 600 $switched_locale = switch_to_locale( get_locale() ); 601 } 604 602 605 603 /** This filter is documented in wp-includes/functions.php */
Note: See TracChangeset
for help on using the changeset viewer.