Skip to content

Commit fc7cd8b

Browse files
committed
Version bump
1 parent 64e0943 commit fc7cd8b

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.20.0]
8+
- Convert newlines to line breaks when forcing HTML
9+
710
## [1.19.1]
811
- Fix warning when logging sends with a null To address
912

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ The plugin supports using the `wp_mail_from_name` filter for manually setting a
102102
[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)
103103

104104
## Changelog
105-
## [1.19.1]
106-
- Fix warning when logging sends with a null To address
105+
## [1.20.0]
106+
- Convert newlines to line breaks when forcing HTML
107107

108108
--------
109109

postmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ActiveCampaign Postmark (Official)
44
* Plugin URI: https://postmarkapp.com/
55
* Description: Overrides wp_mail to send emails through ActiveCampaign Postmark
6-
* Version: 1.19.1
6+
* Version: 1.20.0
77
* Requires PHP: 7.0
88
* Requires at least: 5.3
99
* Tested up to: 6.2
@@ -41,7 +41,7 @@ class Postmark_Mail {
4141
*
4242
* @var string
4343
*/
44-
public static $POSTMARK_VERSION = '1.19.1';
44+
public static $POSTMARK_VERSION = '1.20.0';
4545

4646
/**
4747
* ActiveCampaign Postmark Plugin Directory.

readme.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: postmark, email, smtp, notifications, wp_mail, wildbit
44
Requires PHP: 7.0
55
Requires at least: 5.3
66
Tested up to: 6.2
7-
Stable tag: 1.19.1
7+
Stable tag: 1.20.0
88

99
The *officially-supported* ActiveCampaign Postmark plugin for Wordpress.
1010

@@ -133,8 +133,8 @@ At [ActiveCampaign](https://www.activecampaign.com/?utm_source=postmark&utm_medi
133133
1. ActiveCampaign Postmark WP Plugin Settings screen.
134134

135135
== Changelog ==
136-
= v1.19.1 =
137-
* Fix warning when logging sends with a null To address
136+
= v1.20.0 =
137+
* Convert newlines to line breaks when forcing HTML
138138

139139
--------
140140

wp-mail.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
237237
}
238238

239239
if ( 1 === (int) $settings['force_html'] || 'text/html' === $content_type || 1 === $track_opens ) {
240+
# convert "/n" newlines in plain text to <br> tags in forced HTML
240241
if ( 'text/plain' === $content_type ) {
241-
$message = str_replace( "\n", "<br>", $message );
242-
}
242+
$message = str_replace( "\n", "<br>", $message );
243+
}
243244
$body['HtmlBody'] = $message;
244245
// The user really, truly wants this sent as HTML, don't send it as text, too.
245246
// For historical reasons, we can't "force html" and "track opens" set both html and text bodies,

0 commit comments

Comments
 (0)