Changeset 59592 for trunk/src/wp-includes/class-wp-locale-switcher.php
- Timestamp:
- 01/08/2025 12:52:04 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale-switcher.php
r57350 r59592 274 274 * 275 275 * @global WP_Locale $wp_locale WordPress date and time locale object. 276 * @global PHPMailer\PHPMailer\PHPMailer $phpmailer 276 277 * 277 278 * @param string $locale The locale to change to. 278 279 */ 279 280 private function change_locale( $locale ) { 280 global $wp_locale ;281 global $wp_locale, $phpmailer; 281 282 282 283 $this->load_translations( $locale ); … … 285 286 286 287 WP_Translation_Controller::get_instance()->set_locale( $locale ); 288 289 if ( $phpmailer instanceof WP_PHPMailer ) { 290 $phpmailer->SetLanguage(); 291 } 287 292 288 293 /**
Note: See TracChangeset
for help on using the changeset viewer.