Mailgun for WordPress - Version 1.8.8

Version Description

Download this release

Release Info

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

Code changes from version 1.8.7 to 1.8.8

Files changed (5) hide show
  1. CHANGELOG.md +3 -0
  2. includes/wp-mail-api.php +2 -9
  3. mailgun.php +2 -2
  4. readme.md +4 -1
  5. readme.txt +1 -1
CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
  Changelog
2
  =========
 
 
 
3
  1.8.7 (2022-11-12)
4
  - Fixed bug when field `Override "From" Details` was not updated
5
 
1
  Changelog
2
  =========
3
+ 1.8.8 (2022-12-11)
4
+ - Fixed bug when `$to` override in the `wp_mail` function
5
+
6
  1.8.7 (2022-11-12)
7
  - Fixed bug when field `Override "From" Details` was not updated
8
 
includes/wp-mail-api.php CHANGED
@@ -112,13 +112,6 @@ function mg_mutate_to_rcpt_vars_cb($to_addrs)
112
  if (!function_exists('wp_mail')) {
113
  function wp_mail($to, $subject, $message, $headers = '', $attachments = array())
114
  {
115
- // Compact the input, apply the filters, and extract them back out
116
- $extractData = apply_filters('wp_mail', compact('to', 'subject', 'message', 'headers', 'attachments'));
117
- if (!is_array($extractData)) {
118
- $extractData = (array)$extractData;
119
- }
120
- extract($extractData, EXTR_OVERWRITE);
121
-
122
  $mailgun = get_option('mailgun');
123
  $region = (defined('MAILGUN_REGION') && MAILGUN_REGION) ? MAILGUN_REGION : $mailgun['region'];
124
  $apiKey = (defined('MAILGUN_APIKEY') && MAILGUN_APIKEY) ? MAILGUN_APIKEY : $mailgun['apiKey'];
@@ -129,7 +122,7 @@ if (!function_exists('wp_mail')) {
129
  }
130
 
131
  // If a region is not set via defines or through the options page, default to US region.
132
- if (!((bool)$region)) {
133
  error_log('[Mailgun] No region configuration was found! Defaulting to US region.');
134
  $region = 'us';
135
  }
@@ -256,7 +249,7 @@ if (!function_exists('wp_mail')) {
256
  } elseif (is_array($body['o:tag'])) {
257
  $body['o:tag'] = array_merge($body['o:tag'], $tags);
258
  } else {
259
- $body['o:tag'] .= ',' . $tags;
260
  }
261
  }
262
 
112
  if (!function_exists('wp_mail')) {
113
  function wp_mail($to, $subject, $message, $headers = '', $attachments = array())
114
  {
 
 
 
 
 
 
 
115
  $mailgun = get_option('mailgun');
116
  $region = (defined('MAILGUN_REGION') && MAILGUN_REGION) ? MAILGUN_REGION : $mailgun['region'];
117
  $apiKey = (defined('MAILGUN_APIKEY') && MAILGUN_APIKEY) ? MAILGUN_APIKEY : $mailgun['apiKey'];
122
  }
123
 
124
  // If a region is not set via defines or through the options page, default to US region.
125
+ if (!($region)) {
126
  error_log('[Mailgun] No region configuration was found! Defaulting to US region.');
127
  $region = 'us';
128
  }
249
  } elseif (is_array($body['o:tag'])) {
250
  $body['o:tag'] = array_merge($body['o:tag'], $tags);
251
  } else {
252
+ $body['o:tag'] .= ',' . implode(',', $tags);
253
  }
254
  }
255
 
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.7
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
  */
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
  */
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.7
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.7 (2022-11-12): =
134
  - Fixed bug when field `Override "From" Details` was not updated
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.8
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
 
130
 
131
 
132
  == Changelog ==
133
+ = 1.8.8 (2022-12-11): =
134
+ - Fixed bug when `$to` override in the `wp_mail` function
135
+
136
  = 1.8.7 (2022-11-12): =
137
  - Fixed bug when field `Override "From" Details` was not updated
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.7
9
  Requires PHP: 5.6
10
  License: GPLv2 or later
11
 
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