Make WordPress Core


Ignore:
Timestamp:
06/12/2020 03:45:30 PM (4 years ago)
Author:
desrosj
Message:

External Libraries: Upgrade PHPMailer to version 6.1.6.

Now that WordPress Core supports PHP >= 5.6, the PHPMailer library can be updated to the latest version.

The PHPMailer files now reside in a new directory, wp-includes/PHPMailer. These files are copied verbatim from the library upstream and will make updating in the future easier. For backwards compatibility, the old files will remain and trigger deprecated file warnings.

The PHPMailer class is also now under the PHPMailer\PHPMailer\PHPMailer namespace. The PHPMailer class in the global namespace has been aliased for a seamless transition.

This upgrade also clears up a handful of PHP compatibility issues detailed in #49922.

For a full list of changes, see the PHPMailer GitHub: https://github.com/PHPMailer/PHPMailer/compare/v5.2.27...v6.1.6.

Props Synchro, SergeyBiryukov, desrosj, donmhico, ayeshrajans.
Fixes #41750.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/mock-mailer.php

    r47198 r48033  
    11<?php
    2 require_once ABSPATH . '/wp-includes/class-phpmailer.php';
     2require_once ABSPATH . '/wp-includes/PHPMailer/PHPMailer.php';
     3require_once ABSPATH . '/wp-includes/PHPMailer/Exception.php';
    34
    4 class MockPHPMailer extends PHPMailer {
     5class MockPHPMailer extends PHPMailer\PHPMailer\PHPMailer {
    56    var $mock_sent = array();
    67
Note: See TracChangeset for help on using the changeset viewer.