ldc-sbv/wp-includes/class-smtp.php

16 lines
457 B
PHP
Raw Normal View History

2017-08-08 12:06:05 +02:00
<?php
/**
2021-09-21 15:01:08 +02:00
* The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
2017-08-08 12:06:05 +02:00
*/
2021-09-21 15:01:08 +02:00
_deprecated_file(
basename( __FILE__ ),
'5.5.0',
WPINC . '/PHPMailer/SMTP.php',
__( 'The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' )
);
2017-08-08 12:06:05 +02:00
2021-09-21 15:01:08 +02:00
require_once __DIR__ . '/PHPMailer/SMTP.php';
2017-08-08 12:06:05 +02:00
2021-09-21 15:01:08 +02:00
class_alias( PHPMailer\PHPMailer\SMTP::class, 'SMTP' );