Make WordPress Core

Ticket #50379: 50379.diff

File 50379.diff, 1.4 KB (added by SergeyBiryukov, 6 years ago)
  • src/wp-includes/class-phpmailer.php

     
    66if ( function_exists( '_deprecated_file' ) ) {
    77        _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.' ) );
    88}
     9
    910require __DIR__ . '/PHPMailer/PHPMailer.php';
     11require __DIR__ . '/PHPMailer/Exception.php';
    1012
    1113class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
     14class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );
  • src/wp-includes/class-smtp.php

     
    44 * The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
    55 */
    66_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.' ) );
     7
    78require __DIR__ . '/PHPMailer/SMTP.php';
     9
     10class_alias( PHPMailer\PHPMailer\SMTP::class, 'SMTP' );