From 902c6f8bab949e87663cfffb2428b156eee9d3d0 Mon Sep 17 00:00:00 2001 From: pgraham3 Date: Thu, 7 Dec 2023 15:01:28 -0500 Subject: [PATCH] v1.19.1 is stable currently --- README.md | 4 ++-- postmark.php | 4 ++-- readme.txt | 6 +++--- wp-mail.php | 4 ---- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ef3d01d..3d35f7c 100755 --- a/README.md +++ b/README.md @@ -102,8 +102,8 @@ The plugin supports using the `wp_mail_from_name` filter for manually setting a [Can I use the ActiveCampaign Postmark for WordPress plugin with Divi contact forms?](https://postmarkapp.com/support/article/1128-can-i-use-the-postmark-for-wordpress-plugin-with-divi-contact-forms) ## Changelog -## [1.20.0] -- Convert newlines to line breaks when forcing HTML +## [1.19.1] +- Fix warning when logging sends with a null To address -------- diff --git a/postmark.php b/postmark.php index f4c0a46..ef63704 100644 --- a/postmark.php +++ b/postmark.php @@ -3,7 +3,7 @@ * Plugin Name: ActiveCampaign Postmark (Official) * Plugin URI: https://postmarkapp.com/ * Description: Overrides wp_mail to send emails through ActiveCampaign Postmark - * Version: 1.20.0 + * Version: 1.19.1 * Requires PHP: 7.0 * Requires at least: 5.3 * Tested up to: 6.4 @@ -41,7 +41,7 @@ class Postmark_Mail { * * @var string */ - public static $POSTMARK_VERSION = '1.20.0'; + public static $POSTMARK_VERSION = '1.19.1'; /** * ActiveCampaign Postmark Plugin Directory. diff --git a/readme.txt b/readme.txt index dfd7223..887e2e9 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: postmark, email, smtp, notifications, wp_mail, wildbit Requires PHP: 7.0 Requires at least: 5.3 Tested up to: 6.4 -Stable tag: 1.20.0 +Stable tag: 1.19.1 The *officially-supported* ActiveCampaign Postmark plugin for Wordpress. @@ -133,8 +133,8 @@ At [ActiveCampaign](https://www.activecampaign.com/?utm_source=postmark&utm_medi 1. ActiveCampaign Postmark WP Plugin Settings screen. == Changelog == -= v1.20.0 = -* Convert newlines to line breaks when forcing HTML += v1.19.1 = +* Fix warning when logging sends with a null To address -------- diff --git a/wp-mail.php b/wp-mail.php index 11cdcd7..90894c3 100644 --- a/wp-mail.php +++ b/wp-mail.php @@ -237,10 +237,6 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() } if ( 1 === (int) $settings['force_html'] || 'text/html' === $content_type || 1 === $track_opens ) { - # convert "/n" newlines in plain text to
tags in forced HTML - if ( 'text/plain' === $content_type ) { - $message = str_replace( "\n", "
", $message ); - } $body['HtmlBody'] = $message; // The user really, truly wants this sent as HTML, don't send it as text, too. // For historical reasons, we can't "force html" and "track opens" set both html and text bodies,