From 579c0de01c749ef0b7e2b66e6a82f341ce5286df Mon Sep 17 00:00:00 2001 From: Lai Power Date: Mon, 5 Jun 2023 11:21:28 +0000 Subject: [PATCH] updated plugin `SMTP Mailer` version 1.1.6 --- wp-content/plugins/smtp-mailer/main.php | 14 ++++++++------ wp-content/plugins/smtp-mailer/readme.txt | 9 ++++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/wp-content/plugins/smtp-mailer/main.php b/wp-content/plugins/smtp-mailer/main.php index 5518da7a..4bbf03e1 100644 --- a/wp-content/plugins/smtp-mailer/main.php +++ b/wp-content/plugins/smtp-mailer/main.php @@ -1,7 +1,7 @@ $attachment ) { + $filename = is_string( $filename ) ? $filename : ''; + try { - $phpmailer->addAttachment( $attachment ); + $phpmailer->addAttachment( $attachment, $filename ); } catch ( PHPMailer\PHPMailer\Exception $e ) { continue; } diff --git a/wp-content/plugins/smtp-mailer/readme.txt b/wp-content/plugins/smtp-mailer/readme.txt index b6375826..ca635a0c 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: 6.1 -Tested up to: 6.1 -Stable tag: 1.1.5 +Requires at least: 6.2 +Tested up to: 6.2 +Stable tag: 1.1.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -103,6 +103,9 @@ none == Changelog == += 1.1.6 = +* WordPress 6.2 compatibility update. + = 1.1.5 = * Compatibility update for WordPress 6.1.