Skip to content

Commit

Permalink
Fixed bug with not overriding from name for Woocommerce
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko committed Dec 26, 2022
1 parent 78ea0be commit feabc9f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog
=========
1.8.10 (2022-12-26)
- Fixed bug with not overriding `from name` for Woocommerce

1.8.9 (2022-12-14)
- Fixed bug with removed wp_mail filter

Expand Down
2 changes: 1 addition & 1 deletion includes/mg-filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function mg_detect_from_name($from_name_header = null)
}

$filter_from_name = null;
if (has_filter('wp_mail_from_name')) {
if ((!isset($mg_override_from) || $mg_override_from == '0') && has_filter('wp_mail_from_name')) {
$filter_from_name = apply_filters(
'wp_mail_from_name',
$from_name
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: 1.8.9
* Version: 1.8.10
* Tested up to: 6.1
* Author: Mailgun
* Author URI: http://www.mailgun.com/
Expand Down
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Mailgun for WordPress
Contributors: mailgun, sivel, lookahead.io, m35dev
Tags: mailgun, smtp, http, api, mail, email
Requires at least: 3.3
Tested up to: 6.1
Stable tag: 1.8.9
Tested up to: 6.1.1
Stable tag: 1.8.10
Requires PHP: 5.6
License: GPLv2 or later

Expand Down Expand Up @@ -130,6 +130,9 @@ MAILGUN_FROM_ADDRESS Type: string


== Changelog ==
= 1.8.10 (2022-12-26): =
- Fixed bug with not overriding `from name` for Woocommerce

= 1.8.9 (2022-12-14): =
- Fixed bug with removed wp_mail filter

Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Mailgun for WordPress
Contributors: mailgun, sivel, lookahead.io, m35dev
Tags: mailgun, smtp, http, api, mail, email
Requires at least: 4.4
Tested up to: 6.1
Stable tag: 1.8.9
Tested up to: 6.1.1
Stable tag: 1.8.10
Requires PHP: 5.6
License: GPLv2 or later

Expand Down Expand Up @@ -128,6 +128,9 @@ MAILGUN_FROM_ADDRESS Type: string


== Changelog ==
= 1.8.10 (2022-12-26): =
- Fixed bug with not overriding `from name` for Woocommerce

= 1.8.8 (2022-12-14): =
- Fixed bug with removed wp_mail filter

Expand Down

0 comments on commit feabc9f

Please sign in to comment.