Changeset 60813 for trunk/src/wp-includes/class-wp-phpmailer.php
- Timestamp:
- 09/30/2025 12:46:53 PM (14 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-phpmailer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-phpmailer.php
r60623 r60813 25 25 public function __construct( $exceptions = false ) { 26 26 parent::__construct( $exceptions ); 27 $this->setLanguage();27 static::setLanguage(); 28 28 } 29 29 … … 37 37 * @return true Always returns true. 38 38 */ 39 public function setLanguage( $langcode = 'en', $lang_path = '' ) {40 $this->language = array(39 public static function setLanguage( $langcode = 'en', $lang_path = '' ) { 40 static::$language = array( 41 41 'authenticate' => __( 'SMTP Error: Could not authenticate.' ), 42 42 'buggy_php' => sprintf( … … 90 90 'variable_set' => __( 'Cannot set or reset variable: ' ), 91 91 'no_smtputf8' => __( 'Server does not support SMTPUTF8 needed to send to Unicode addresses' ), 92 'imap_recommended' => __( 'Using simplified address parser is not recommended. Install the PHP IMAP extension for full RFC822 parsing.' ), 93 'deprecated_argument' => sprintf( 94 /* translators: %s: $deprecatedArg */ 95 __( 'Argument %s is deprecated' ), 96 '$deprecatedArg' 97 ), 92 98 ); 93 99
Note:
See TracChangeset
for help on using the changeset viewer.