From 9d69ca8941866dab6850eac9a3bc66152d1ccd3f Mon Sep 17 00:00:00 2001 From: Lai Power Date: Thu, 24 Nov 2022 13:40:42 +0000 Subject: [PATCH] updated plugin `SMTP Mailer` version 1.1.5 --- wp-content/plugins/smtp-mailer/main.php | 10 ++++++---- wp-content/plugins/smtp-mailer/readme.txt | 9 ++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/wp-content/plugins/smtp-mailer/main.php b/wp-content/plugins/smtp-mailer/main.php index 846157d9..5518da7a 100644 --- a/wp-content/plugins/smtp-mailer/main.php +++ b/wp-content/plugins/smtp-mailer/main.php @@ -1,7 +1,7 @@ 0 ) { - $from_name = substr( $content, 0, $bracket_pos - 1 ); + $from_name = substr( $content, 0, $bracket_pos ); $from_name = str_replace( '"', '', $from_name ); $from_name = trim( $from_name ); } @@ -608,6 +608,8 @@ function smtp_mailer_pre_wp_mail($null, $atts) $phpmailer->clearAttachments(); $phpmailer->clearCustomHeaders(); $phpmailer->clearReplyTos(); + $phpmailer->Body = ''; + $phpmailer->AltBody = ''; // Set "From" name and email. diff --git a/wp-content/plugins/smtp-mailer/readme.txt b/wp-content/plugins/smtp-mailer/readme.txt index 136a0302..b6375826 100644 --- a/wp-content/plugins/smtp-mailer/readme.txt +++ b/wp-content/plugins/smtp-mailer/readme.txt @@ -2,9 +2,9 @@ Contributors: naa986 Donate link: https://wphowto.net/ Tags: email, mail, smtp, phpmailer -Requires at least: 5.9 -Tested up to: 6.0 -Stable tag: 1.1.4 +Requires at least: 6.1 +Tested up to: 6.1 +Stable tag: 1.1.5 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -103,6 +103,9 @@ none == Changelog == += 1.1.5 = +* Compatibility update for WordPress 6.1. + = 1.1.4 = * Updated the mail function for WordPress 6.0.