diff --git a/CHANGELOG.md b/CHANGELOG.md index 191e37f5..4f89147d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog +##### 6.1.2 + - Fix possible error when code switch websites and could leave website in a broken state + ##### 6.1.1 - Fix PHP Fatal error: Uncaught Error: Class 'MailjetWp\\MailjetPlugin\\Front\\Mailjet diff --git a/README.md b/README.md index 0295ee90..b32d9f96 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ - Contributors: Mailjet - Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7 - Requires at least: 4.4 -- Tested up to: 6.6.1 -- Stable tag: 6.1.1 +- Tested up to: 6.6.2 +- Stable tag: 6.1.2 - Requires PHP: 7.4 - License: GPLv2 or later - License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -162,6 +162,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \; ## Changelog +##### 6.1.2 +- Fix possible error when code switch websites and could leave website in a broken state + ##### 6.1 - Added support Multisite settings across all sites. Now, you can use plugin settings from the main site on all your subdomains. diff --git a/readme.txt b/readme.txt index afb273de..9e59f06f 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ - Contributors: Mailjet - Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7 - Requires at least: 4.4 -- Tested up to: 6.6.1 -- Stable tag: 6.1.1 +- Tested up to: 6.6.2 +- Stable tag: 6.1.2 - Requires PHP: 7.4 - License: GPLv2 or later - License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -152,6 +152,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \; == Changelog == += 6.1.2 = + - Fix possible error when code switch websites and could leave website in a broken state + = 6.0.1 = * Removed old widget filter function `mailjet_subscription_widget_email_params`. It was deprecated and unsupported since we have Form Builder widget diff --git a/src/includes/Mailjet.php b/src/includes/Mailjet.php index a3b6741f..f0aea170 100644 --- a/src/includes/Mailjet.php +++ b/src/includes/Mailjet.php @@ -63,7 +63,7 @@ public function __construct() if (\defined('MAILJET_VERSION')) { $this->version = MAILJET_VERSION; } else { - $this->version = '6.1.1'; + $this->version = '6.1.2'; } $this->plugin_name = 'mailjet'; $this->load_dependencies(); @@ -300,7 +300,9 @@ public static function getOption(string $key) //If main site has multisite support enabled, we should use the main site options if (get_option('mailjet_multisite_support') === 'on') { - return get_option($key); + $optionValue = get_option($key); + restore_current_blog(); + return $optionValue; } //If main site has multisite support disabled, we should use the current site options restore_current_blog(); diff --git a/wp-mailjet.php b/wp-mailjet.php index 612aa736..a2151a6f 100755 --- a/wp-mailjet.php +++ b/wp-mailjet.php @@ -14,8 +14,8 @@ * Plugin Name: Mailjet for WordPress * Plugin URI: https://www.mailjet.com/partners/wordpress/ * Description: The Best WordPress Plugin For Email Newsletters. - * Version: 6.1.1 - * Tested up to: 6.6.1 + * Version: 6.1.2 + * Tested up to: 6.6.2 * Author: Mailjet SAS * Author URI: http://mailjet.com * License: GPL-2.0+ @@ -56,7 +56,7 @@ /** * Mailjet plugin version. */ -define('MAILJET_VERSION', '6.1.1'); +define('MAILJET_VERSION', '6.1.2'); /** * Mailjet Plugid dir.