diff --git src/bp-core/classes/class-bp-phpmailer.php src/bp-core/classes/class-bp-phpmailer.php
index 76b24395d..2a238572a 100644
|
|
class BP_PHPMailer implements BP_Email_Delivery { |
44 | 44 | * and is now using version 6.0 of PHPMailer. |
45 | 45 | */ |
46 | 46 | if ( file_exists( ABSPATH . WPINC . '/PHPMailer/PHPMailer.php' ) ) { |
| 47 | $phpmailer_is_6_0 = true; |
| 48 | |
47 | 49 | if ( ! ( $phpmailer instanceof PHPMailer\PHPMailer\PHPMailer ) ) { |
48 | 50 | if ( ! class_exists( 'PHPMailer\\PHPMailer\\PHPMailer' ) ) { |
49 | 51 | require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php'; |
… |
… |
class BP_PHPMailer implements BP_Email_Delivery { |
51 | 53 | require_once ABSPATH . WPINC . '/PHPMailer/Exception.php'; |
52 | 54 | } |
53 | 55 | |
54 | | $phpmailer = new PHPMailer\PHPMailer\PHPMailer( true ); |
55 | | $phpmailer_is_6_0 = true; |
| 56 | $phpmailer = new PHPMailer\PHPMailer\PHPMailer( true ); |
56 | 57 | } |
57 | 58 | } else { |
58 | 59 | if ( ! ( $phpmailer instanceof PHPMailer ) ) { |