Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

2.2.3 (2026-08-31)
- Tested and confirmed compatible with WordPress 7.1
- Fix: settings page "Test Configuration" button now works on modern WordPress - replaced the jQuery AJAX handlers removed in jQuery 3.0 (`complete`/`success`/`error`) with `always`/`done`/`fail`
- Fix: load the plugin text domain on the `init` hook to avoid the "translation loading triggered too early" notice in WordPress 6.7+

2.2.2 (2026-07-17)
- Security fix: replace insecure SHA-1/MD5 hash functions with SHA-256 for the API request hash, multipart boundary generation, and widget ID generation

Expand Down
19 changes: 13 additions & 6 deletions includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ public function __construct() {

$this->init();

// Load localizations if available
load_plugin_textdomain('mailgun', false, 'mailgun/languages');
// Load localizations if available. Deferred to `init` because WordPress 6.7+
// triggers a "translation loading was triggered too early" notice when a text
// domain is loaded before the `init` action.
add_action(
'init',
static function (): void {
load_plugin_textdomain('mailgun', false, 'mailgun/languages');
}
);

// Activation hook
register_activation_hook($this->plugin_file, array( &$this, 'activation' ));
Expand Down Expand Up @@ -163,7 +170,7 @@ public function admin_footer_js(): void {

}
var formModified = false
jQuery().ready(function () {
jQuery(function () {
mailgunApiOrNot()
jQuery('#mailgun-api').change(function () {
mailgunApiOrNot()
Expand All @@ -186,10 +193,10 @@ public function admin_footer_js(): void {
_wpnonce: '<?php echo esc_attr(wp_create_nonce()); ?>'
}
)
.complete(function () {
.always(function () {
jQuery('#mailgun-test').val('<?php _e('Test Configuration', 'mailgun'); ?>')
})
.success(function (data) {
.done(function (data) {
if (typeof data.message !== 'undefined' && data.message === 'Failure') {
toastr.error('Mailgun ' + data.method + ' Test ' + data.message
+ '; status "' + data.error + '"');
Expand All @@ -198,7 +205,7 @@ public function admin_footer_js(): void {
+ '; status "' + data.error + '"');
}
})
.error(function () {
.fail(function () {
toastr.error('Mailgun Test <?php _e('Failure', 'mailgun'); ?>')
})
})
Expand Down
2 changes: 1 addition & 1 deletion mailgun.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mailgun
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
* Description: Mailgun integration for WordPress
* Version: 2.2.2
* Version: 2.2.3
* Requires PHP: 7.4
* Requires at least: 5.6
* Author: Mailgun
Expand Down
9 changes: 7 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Mailgun for WordPress

Contributors: mailgun, sivel, lookahead.io, m35dev, alanfuller
Tags: mailgun, smtp, http, api, mail, email
Tested up to: 7.0
Stable tag: 2.2.2
Tested up to: 7.1
Stable tag: 2.2.3
Requires PHP: 7.4
License: GPLv2 or later

Expand Down Expand Up @@ -133,6 +133,11 @@ MAILGUN_REPLY_TO_ADDRESS Type: string

== Changelog ==

= 2.2.3 (2026-08-31): =
- Tested and confirmed compatible with WordPress 7.1
- Fix: settings page "Test Configuration" button now works on modern WordPress - replaced the jQuery AJAX handlers removed in jQuery 3.0 (`complete`/`success`/`error`) with `always`/`done`/`fail`
- Fix: load the plugin text domain on the `init` hook to avoid the "translation loading triggered too early" notice in WordPress 6.7+

= 2.2.2 (2026-07-17): =
- Security fix: replace insecure SHA-1/MD5 hash functions with SHA-256 for the API request hash, multipart boundary generation, and widget ID generation

Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Mailgun for WordPress

Contributors: mailgun, sivel, lookahead.io, m35dev, alanfuller
Tags: mailgun, smtp, http, api, mail, email
Tested up to: 7.0
Stable tag: 2.2.2
Tested up to: 7.1
Stable tag: 2.2.3
Requires PHP: 7.4
License: GPLv2 or later

Expand Down Expand Up @@ -129,6 +129,11 @@ MAILGUN_TRACK_OPENS Type: string Choices: 'yes' or 'no'

== Changelog ==

= 2.2.3 (2026-08-31): =
- Tested and confirmed compatible with WordPress 7.1
- Fix: settings page "Test Configuration" button now works on modern WordPress - replaced the jQuery AJAX handlers removed in jQuery 3.0 (`complete`/`success`/`error`) with `always`/`done`/`fail`
- Fix: load the plugin text domain on the `init` hook to avoid the "translation loading triggered too early" notice in WordPress 6.7+

= 2.2.2 (2026-07-17): =
- Security fix: replace insecure SHA-1/MD5 hash functions with SHA-256 for the API request hash, multipart boundary generation, and widget ID generation

Expand Down
Loading