CoreFiles by mySites.guru
class-phpmailer.php19 lines, 664 bytes, from wordpress-7.1.4.zip
Raw History Compare with 7.1.3
md5
27c5d946213b892032f3b1bbb134c526
sha1
a39b074d01e3043ea053980aa6c774bc807d0be0
sha256
0dfbc6a7b33c833e61559bb196dcbbccf2389f5813ca7ba0bb2fc8048745ec9f
<?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_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' );

The same content is in 442 releases, WordPress 5.5-beta3 to 7.2-beta5. See them all, or every version of this file.