Mail: Make sure the `PHPMailer` class is only required once if a plugin requires `wp-includes/class-phpmailer.php` directly.
Follow-up to [48033]. Props david.binda. Fixes #50716. See #41750. Built from https://develop.svn.wordpress.org/trunk@48530 git-svn-id: http://core.svn.wordpress.org/trunk@48292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ce7bd633b
commit
ee60c40806
|
@ -12,8 +12,8 @@ if ( function_exists( '_deprecated_file' ) ) {
|
|||
);
|
||||
}
|
||||
|
||||
require __DIR__ . '/PHPMailer/PHPMailer.php';
|
||||
require __DIR__ . '/PHPMailer/Exception.php';
|
||||
require_once __DIR__ . '/PHPMailer/PHPMailer.php';
|
||||
require_once __DIR__ . '/PHPMailer/Exception.php';
|
||||
|
||||
class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
|
||||
class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-beta2-48529';
|
||||
$wp_version = '5.5-beta2-48530';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue