Changeset 60231
- Timestamp:
- 05/11/2025 05:14:52 PM (5 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale-switcher.php
r59592 r60231 288 288 289 289 if ( $phpmailer instanceof WP_PHPMailer ) { 290 $phpmailer-> SetLanguage();290 $phpmailer->setLanguage(); 291 291 } 292 292 -
trunk/src/wp-includes/class-wp-phpmailer.php
r59592 r60231 25 25 public function __construct( $exceptions = false ) { 26 26 parent::__construct( $exceptions ); 27 $this-> SetLanguage();27 $this->setLanguage(); 28 28 } 29 29 … … 35 35 * @return true Always returns true. 36 36 */ 37 public function SetLanguage( $langcode = 'en', $lang_path = '' ) {38 $ error_strings= array(37 public function setLanguage( $langcode = 'en', $lang_path = '' ) { 38 $this->language = array( 39 39 'authenticate' => __( 'SMTP Error: Could not authenticate.' ), 40 40 'buggy_php' => sprintf( … … 88 88 'variable_set' => __( 'Cannot set or reset variable: ' ), 89 89 ); 90 $this->language = $error_strings; 90 91 91 return true; 92 92 }
Note: See TracChangeset for help on using the changeset viewer.