Edit File by line
/home/barbar84/public_h.../wp-inclu...
File: class-phpmailer.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
[3] Fix | Delete
*/
[4] Fix | Delete
if ( function_exists( '_deprecated_file' ) ) {
[5] Fix | Delete
_deprecated_file(
[6] Fix | Delete
basename( __FILE__ ),
[7] Fix | Delete
'5.5.0',
[8] Fix | Delete
WPINC . '/PHPMailer/PHPMailer.php',
[9] Fix | Delete
__( 'The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' )
[10] Fix | Delete
);
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
require_once __DIR__ . '/PHPMailer/PHPMailer.php';
[14] Fix | Delete
require_once __DIR__ . '/PHPMailer/Exception.php';
[15] Fix | Delete
[16] Fix | Delete
class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
[17] Fix | Delete
class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );
[18] Fix | Delete
[19] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function