From 1d2f9717ac60dd25d97894391d6e5f14d0c9c13d Mon Sep 17 00:00:00 2001 From: yehudah Date: Sun, 17 Feb 2019 22:08:17 +0000 Subject: Prevent dropping mismatch send address on fallback --- Postman/PostmanOptions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Postman/PostmanOptions.php b/Postman/PostmanOptions.php index 971cdd2..8825681 100644 --- a/Postman/PostmanOptions.php +++ b/Postman/PostmanOptions.php @@ -534,6 +534,11 @@ if ( ! class_exists( 'PostmanOptions' ) ) { return $this->isPluginSenderEmailEnforced(); } public function isPluginSenderEmailEnforced() { + + if ( $this->is_fallback ) { + return true; + } + if ( $this->isNew() ) { return self::DEFAULT_PLUGIN_MESSAGE_SENDER_EMAIL_ENFORCED; } if ( isset( $this->options [ PostmanOptions::PREVENT_MESSAGE_SENDER_EMAIL_OVERRIDE ] ) ) { -- cgit v1.2.3