Changeset 12709
- Timestamp:
- 08/29/2020 09:35:31 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/src/bp-core/classes/class-bp-phpmailer.php
r12688 r12709 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' ) ) { … … 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 {
Note: See TracChangeset
for help on using the changeset viewer.