Mailgun for WordPress - Version 1.8.9

Version Description

Download this release

Release Info

Developer omykhailenko
Plugin Icon 128x128 Mailgun for WordPress
Version 1.8.9
Comparing to
See all releases

Code changes from version 1.8.8 to 1.8.9

Files changed (5) hide show
  1. CHANGELOG.md +3 -0
  2. includes/wp-mail-api.php +27 -0
  3. mailgun.php +2 -2
  4. readme.md +4 -1
  5. readme.txt +4 -1
CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
  Changelog
2
  =========
 
 
 
3
  1.8.8 (2022-12-11)
4
  - Fixed bug when `$to` override in the `wp_mail` function
5
 
1
  Changelog
2
  =========
3
+ 1.8.9 (2022-12-14)
4
+ - Fixed bug with removed wp_mail filter
5
+
6
  1.8.8 (2022-12-11)
7
  - Fixed bug when `$to` override in the `wp_mail` function
8
 
includes/wp-mail-api.php CHANGED
@@ -126,6 +126,33 @@ if (!function_exists('wp_mail')) {
126
  error_log('[Mailgun] No region configuration was found! Defaulting to US region.');
127
  $region = 'us';
128
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130
  if (!is_array($attachments)) {
131
  $attachments = explode("\n", str_replace("\r\n", "\n", $attachments));
126
  error_log('[Mailgun] No region configuration was found! Defaulting to US region.');
127
  $region = 'us';
128
  }
129
+
130
+ // Respect WordPress core filters
131
+ $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );
132
+
133
+ if (isset($atts['to'])) {
134
+ $to = $atts['to'];
135
+ }
136
+
137
+ if (!is_array($to)) {
138
+ $to = explode(',', $to);
139
+ }
140
+
141
+ if (isset($atts['subject'])) {
142
+ $subject = $atts['subject'];
143
+ }
144
+
145
+ if (isset($atts['message'])) {
146
+ $message = $atts['message'];
147
+ }
148
+
149
+ if (isset($atts['headers'])) {
150
+ $headers = $atts['headers'];
151
+ }
152
+
153
+ if (isset($atts['attachments'])) {
154
+ $attachments = $atts['attachments'];
155
+ }
156
 
157
  if (!is_array($attachments)) {
158
  $attachments = explode("\n", str_replace("\r\n", "\n", $attachments));
mailgun.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: Mailgun
4
  * Plugin URI: http://wordpress.org/extend/plugins/mailgun/
5
  * Description: Mailgun integration for WordPress
6
- * Version: 1.8.8
7
  * Tested up to: 6.1
8
  * Author: Mailgun
9
  * Author URI: http://www.mailgun.com/
10
- * License: GPLv2 or late
11
  * Text Domain: mailgun
12
  * Domain Path: /languages/.
13
  */
3
  * Plugin Name: Mailgun
4
  * Plugin URI: http://wordpress.org/extend/plugins/mailgun/
5
  * Description: Mailgun integration for WordPress
6
+ * Version: 1.8.9
7
  * Tested up to: 6.1
8
  * Author: Mailgun
9
  * Author URI: http://www.mailgun.com/
10
+ * License: GPLv2 or later
11
  * Text Domain: mailgun
12
  * Domain Path: /languages/.
13
  */
readme.md CHANGED
@@ -5,7 +5,7 @@ Contributors: mailgun, sivel, lookahead.io, m35dev
5
  Tags: mailgun, smtp, http, api, mail, email
6
  Requires at least: 3.3
7
  Tested up to: 6.1
8
- Stable tag: 1.8.8
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
 
@@ -130,6 +130,9 @@ MAILGUN_FROM_ADDRESS Type: string
130
 
131
 
132
  == Changelog ==
 
 
 
133
  = 1.8.8 (2022-12-11): =
134
  - Fixed bug when `$to` override in the `wp_mail` function
135
 
5
  Tags: mailgun, smtp, http, api, mail, email
6
  Requires at least: 3.3
7
  Tested up to: 6.1
8
+ Stable tag: 1.8.9
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
 
130
 
131
 
132
  == Changelog ==
133
+ = 1.8.9 (2022-12-14): =
134
+ - Fixed bug with removed wp_mail filter
135
+
136
  = 1.8.8 (2022-12-11): =
137
  - Fixed bug when `$to` override in the `wp_mail` function
138
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Contributors: mailgun, sivel, lookahead.io, m35dev
5
  Tags: mailgun, smtp, http, api, mail, email
6
  Requires at least: 4.4
7
  Tested up to: 6.1
8
- Stable tag: 1.8.8
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
 
@@ -128,6 +128,9 @@ MAILGUN_FROM_ADDRESS Type: string
128
 
129
 
130
  == Changelog ==
 
 
 
131
  = 1.8.7 (2022-11-12): =
132
  - Fixed bug when field `Override "From" Details` was not updated
133
 
5
  Tags: mailgun, smtp, http, api, mail, email
6
  Requires at least: 4.4
7
  Tested up to: 6.1
8
+ Stable tag: 1.8.9
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
 
128
 
129
 
130
  == Changelog ==
131
+ = 1.8.8 (2022-12-14): =
132
+ - Fixed bug with removed wp_mail filter
133
+
134
  = 1.8.7 (2022-11-12): =
135
  - Fixed bug when field `Override "From" Details` was not updated
136