Make WordPress Core

Changeset 55557


Ignore:
Timestamp:
03/17/2023 02:20:24 PM (21 months ago)
Author:
SergeyBiryukov
Message:

External Libraries: Upgrade PHPMailer to version 6.8.0.

This is a maintenance release with a new feature: DSN URL parsing, which allows you to create a PHPMailer instance with most important settings by passing in a single URL, ideal for configuring PHPMailer from an environment variable.

Note: This commit does not include new DSN class, as it is not particularly relevant for WordPress core at this time.

References:

Follow-up to [50628], [50799], [51169], [51634], [51635], [52252], [52749], [52811], [53500], [53535], [53917], [54427], [54937].

Props ayeshrajans, jrf, Synchro.
Fixes #57873.

Location:
trunk/src/wp-includes/PHPMailer
Files:
2 edited

Legend:

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

    r54937 r55557  
    751751     * @var string
    752752     */
    753     const VERSION = '6.7';
     753    const VERSION = '6.8.0';
    754754
    755755    /**
     
    24262426    public function addrFormat($addr)
    24272427    {
    2428         if (empty($addr[1])) { //No name provided
     2428        if (!isset($addr[1]) || ($addr[1] === '')) { //No name provided
    24292429            return $this->secureHeader($addr[0]);
    24302430        }
  • trunk/src/wp-includes/PHPMailer/SMTP.php

    r54937 r55557  
    3636     * @var string
    3737     */
    38     const VERSION = '6.7';
     38    const VERSION = '6.8.0';
    3939
    4040    /**
     
    5151     */
    5252    const DEFAULT_PORT = 25;
     53
     54    /**
     55     * The SMTPs port to use if one is not specified.
     56     *
     57     * @var int
     58     */
     59    const DEFAULT_SECURE_PORT = 465;
    5360
    5461    /**
     
    188195        'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/',
    189196        'Haraka' => '/[\d]{3} Message Queued \((.*)\)/',
     197        'ZoneMTA' => '/[\d]{3} Message queued as (.*)/',
    190198        'Mailjet' => '/[\d]{3} OK queued as (.*)/',
    191199    ];
Note: See TracChangeset for help on using the changeset viewer.