Skip to content

Commit 5b0409b

Browse files
Fix bug with sending test email. JS error
1 parent 15552e1 commit 5b0409b

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

includes/admin.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,8 @@ public function admin_footer_js(): void {
171171
jQuery('#mailgun-test').click(function (e) {
172172
e.preventDefault()
173173
if (formModified) {
174-
var doTest = confirm('
175-
<?php
176-
_e(
177-
'The Mailgun plugin configuration has changed since you last saved. Do you wish to test anyway?\n\nClick "Cancel" and then "Save Changes" if you wish to save your changes.',
178-
'mailgun'
179-
);
180-
?>
181-
')
174+
var doTest = confirm('<?php _e('The Mailgun plugin configuration has changed since you last saved. Do you wish to test anyway?\n\nClick "Cancel" and then "Save Changes" if you wish to save your changes.',
175+
'mailgun'); ?>')
182176
if (!doTest) {
183177
return false
184178
}

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Mailgun for WordPress
44
Contributors: mailgun, sivel, lookahead.io, m35dev, alanfuller
55
Tags: mailgun, smtp, http, api, mail, email
66
Tested up to: 6.7.2
7-
Stable tag: 2.1.4
7+
Stable tag: 2.1.5
88
Requires PHP: 7.4
99
License: GPLv2 or later
1010

@@ -133,6 +133,9 @@ MAILGUN_REPLY_TO_ADDRESS Type: string
133133

134134
== Changelog ==
135135

136+
= 2.1.5 (2025-03-06): =
137+
- Fixed bug with sending test emails (JS error)
138+
136139
= 2.1.4 (2025-02-23): =
137140
- Implemented coding standard into plugin
138141
- Fixed a few potential warning related to the plugin

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Mailgun for WordPress
44
Contributors: mailgun, sivel, lookahead.io, m35dev, alanfuller
55
Tags: mailgun, smtp, http, api, mail, email
66
Tested up to: 6.7.2
7-
Stable tag: 2.1.4
7+
Stable tag: 2.1.5
88
Requires PHP: 7.4
99
License: GPLv2 or later
1010

@@ -129,6 +129,9 @@ MAILGUN_TRACK_OPENS Type: string Choices: 'yes' or 'no'
129129

130130
== Changelog ==
131131

132+
= 2.1.5 (2025-03-06): =
133+
- Fixed bug with sending test emails (JS error)
134+
132135
= 2.1.4 (2025-02-23): =
133136
- Implemented coding standard into plugin
134137
- Fixed a few potential warning related to the plugin

0 commit comments

Comments
 (0)