CoreFiles by mySites.guru
class-phpmailer.php19 lines, 654 bytes, from wordpress-5.5-beta2.zip
Raw History Compare with 5.5-beta1
md5
5d39db15e10ecf8ef2981e5808688f9b
sha1
be612f53aa7505e0909d9088a26c7dd184cf2d1a
sha256
cbbb4fd1a3152f75485290bd52278d5e8d2a617e8b56422c4345b34864c65850
<?php

/**
 * The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
 */
if ( function_exists( '_deprecated_file' ) ) {
	_deprecated_file(
		basename( __FILE__ ),
		'5.5.0',
		WPINC . '/PHPMailer/PHPMailer.php',
		__( 'The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' )
	);
}

require __DIR__ . '/PHPMailer/PHPMailer.php';
require __DIR__ . '/PHPMailer/Exception.php';

class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );

The same content is in 2 releases, WordPress 5.5-beta1 to 5.5-beta2. See them all, or every version of this file.