Make WordPress Core


Ignore:
Timestamp:
09/30/2025 12:46:53 PM (14 months ago)
Author:
SergeyBiryukov
Message:

External Libraries: Upgrade PHPMailer to version 6.11.0.

This is a large maintenance release with address parser improvements.

References:

Follow-up to [54937], [55557], [56484], [57137], [59246], [59481], [60623].

Props SirLouen, jrf, mukesh27, SergeyBiryukov.
Fixes #64052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-phpmailer.php

    r60623 r60813  
    2525        public function __construct( $exceptions = false ) {
    2626                parent::__construct( $exceptions );
    27                 $this->setLanguage();
     27                static::setLanguage();
    2828        }
    2929
    … …  
    3737         * @return true Always returns true.
    3838         */
    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(
    4141                        'authenticate'         => __( 'SMTP Error: Could not authenticate.' ),
    4242                        'buggy_php'            => sprintf(
    … …  
    9090                        'variable_set'         => __( 'Cannot set or reset variable: ' ),
    9191                        '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                        ),
    9298                );
    9399
Note: See TracChangeset for help on using the changeset viewer.