Ticket #8347: 8347.02.patch
File 8347.02.patch, 1014 bytes (added by , 4 years ago) |
---|
-
src/bp-core/classes/class-bp-phpmailer.php
43 43 * WordPress 5.5 deprecated version 5.2 of PHPMailer 44 44 * and is now using version 6.0 of PHPMailer. 45 45 */ 46 if ( file_exists( ABSPATH . WPINC . '/PHPMailer/PHPMailer.php' ) ) { 46 if ( bp_get_major_wp_version() >= 5.5 ) { 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'; … … 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 ) ) {