Version Description
(2021-03-16): = - Updated assets, tested WP 5.7
Download this release
Release Info
Developer | Mailgun |
Plugin | Mailgun for WordPress |
Version | 1.7.7 |
Comparing to | |
See all releases |
Code changes from version 1.7.6 to 1.7.7
- CHANGELOG.md +3 -0
- includes/options-page.php +4 -0
- includes/wp-mail-api.php +17 -1
- mailgun.php +1 -1
- readme.txt +5 -2
CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
Changelog
|
2 |
=========
|
3 |
|
|
|
|
|
|
|
4 |
1.7.6 (2021-02-19)
|
5 |
- Sync versions across plugin files
|
6 |
|
1 |
Changelog
|
2 |
=========
|
3 |
|
4 |
+
1.7.7 (2021-03-16)
|
5 |
+
- Updated assets, tested WP 5.7
|
6 |
+
|
7 |
1.7.6 (2021-02-19)
|
8 |
- Sync versions across plugin files
|
9 |
|
includes/options-page.php
CHANGED
@@ -446,5 +446,9 @@ $mailgun_use_api = !is_null($mailgun_use_api_const) ? ((string)(1 * $mailgun_use
|
|
446 |
value="<?php _e('Test Configuration', 'mailgun'); ?>"
|
447 |
/>
|
448 |
</p>
|
|
|
|
|
|
|
|
|
449 |
</form>
|
450 |
</div>
|
446 |
value="<?php _e('Test Configuration', 'mailgun'); ?>"
|
447 |
/>
|
448 |
</p>
|
449 |
+
|
450 |
+
<p>
|
451 |
+
<?php _e("The configuration test email will be sent to your site's administrative email address:", 'mailgun'); ?> <?php echo esc_html(get_option('admin_email'));?>
|
452 |
+
</p>
|
453 |
</form>
|
454 |
</div>
|
includes/wp-mail-api.php
CHANGED
@@ -257,6 +257,22 @@ function wp_mail($to, $subject, $message, $headers = '', $attachments = array())
|
|
257 |
}
|
258 |
}
|
259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
if (!empty($cc) && is_array($cc)) {
|
261 |
$body['cc'] = implode(', ', $cc);
|
262 |
}
|
@@ -269,7 +285,7 @@ function wp_mail($to, $subject, $message, $headers = '', $attachments = array())
|
|
269 |
// write the message body to a file and try to determine the mimetype
|
270 |
// using get_mime_content_type.
|
271 |
if (!isset($content_type)) {
|
272 |
-
$tmppath = tempnam(
|
273 |
$tmp = fopen($tmppath, 'w+');
|
274 |
|
275 |
fwrite($tmp, $message);
|
257 |
}
|
258 |
}
|
259 |
|
260 |
+
/**
|
261 |
+
* Filter tags.
|
262 |
+
*
|
263 |
+
* @param array $tags Mailgun tags.
|
264 |
+
* @param string $to To address.
|
265 |
+
* @param string $subject Subject line.
|
266 |
+
* @param string $message Message content.
|
267 |
+
* @param array $headers Headers array.
|
268 |
+
* @param array $attachments Attachments array.
|
269 |
+
* @param string $region Mailgun region.
|
270 |
+
* @param string $domain Mailgun domain.
|
271 |
+
*
|
272 |
+
* @return array Mailgun tags.
|
273 |
+
*/
|
274 |
+
$body['o:tag'] = apply_filters( 'mailgun_tags', $body['o:tag'], $to, $subject, $message, $headers, $attachments, $region, $domain );
|
275 |
+
|
276 |
if (!empty($cc) && is_array($cc)) {
|
277 |
$body['cc'] = implode(', ', $cc);
|
278 |
}
|
285 |
// write the message body to a file and try to determine the mimetype
|
286 |
// using get_mime_content_type.
|
287 |
if (!isset($content_type)) {
|
288 |
+
$tmppath = tempnam(get_temp_dir(), 'mg');
|
289 |
$tmp = fopen($tmppath, 'w+');
|
290 |
|
291 |
fwrite($tmp, $message);
|
mailgun.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Mailgun
|
5 |
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
|
6 |
* Description: Mailgun integration for WordPress
|
7 |
-
* Version: 1.7.
|
8 |
* Author: Mailgun
|
9 |
* Author URI: http://www.mailgun.com/
|
10 |
* License: GPLv2 or later
|
4 |
* Plugin Name: Mailgun
|
5 |
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
|
6 |
* Description: Mailgun integration for WordPress
|
7 |
+
* Version: 1.7.7
|
8 |
* Author: Mailgun
|
9 |
* Author URI: http://www.mailgun.com/
|
10 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Mailgun for WordPress
|
|
4 |
Contributors: mailgun, sivel, lookahead.io, m35dev
|
5 |
Tags: mailgun, smtp, http, api, mail, email
|
6 |
Requires at least: 3.3
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 1.7.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
|
@@ -129,6 +129,9 @@ MAILGUN_FROM_ADDRESS Type: string
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
132 |
= 1.7.6 (2021-02-19): =
|
133 |
- Sync versions across plugin files
|
134 |
|
4 |
Contributors: mailgun, sivel, lookahead.io, m35dev
|
5 |
Tags: mailgun, smtp, http, api, mail, email
|
6 |
Requires at least: 3.3
|
7 |
+
Tested up to: 5.7.0
|
8 |
+
Stable tag: 1.7.7
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 1.7.7 (2021-03-16): =
|
133 |
+
- Updated assets, tested WP 5.7
|
134 |
+
|
135 |
= 1.7.6 (2021-02-19): =
|
136 |
- Sync versions across plugin files
|
137 |
|