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.

git-svn-id: https://develop.svn.wordpress.org/trunk@48033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers
2020-06-12 15:45:30 +00:00
parent 55f0a18c02
commit 0933882c6e
9 changed files with 6276 additions and 5284 deletions

View File

@@ -1,7 +1,8 @@
<?php
require_once ABSPATH . '/wp-includes/class-phpmailer.php';
require_once ABSPATH . '/wp-includes/PHPMailer/PHPMailer.php';
require_once ABSPATH . '/wp-includes/PHPMailer/Exception.php';
class MockPHPMailer extends PHPMailer {
class MockPHPMailer extends PHPMailer\PHPMailer\PHPMailer {
var $mock_sent = array();
function preSend() {