Skip to content

Commit

Permalink
Fix php 8.1 bug with namespace. Fix versioning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko committed Aug 4, 2022
1 parent 8abd49b commit 566ef65
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7
- Requires at least: 4.4
- Tested up to: 6.0.1
- Stable tag: 5.2.21
- Stable tag: 5.2.23
- Requires PHP: 5.6
- License: GPLv2 or later
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -205,6 +205,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \;
7. Configure abandoned cart notifications for WooCommerce

## Changelog
##### 5.2.23
* Fix issue with php8.1 and classes namespace

##### 5.2.21
* Fix issue with guzzle namespace conflict

Expand Down
6 changes: 6 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \;
7. Configure abandoned cart notifications for WooCommerce

== Upgrade notice ==
= 5.2.23 =
* Fix issue with php8.1 and classes namespace

= 5.2.21 =
* Fix issue with guzzle namespace conflict

Expand Down Expand Up @@ -229,6 +232,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \;
* Removed Bootstrap dependency

== Changelog ==
= 5.2.23 =
* Fix issue with php8.1 and classes namespace

= 5.2.21 =
* Fix issue with guzzle namespace conflict

Expand Down
2 changes: 1 addition & 1 deletion src/includes/Mailjet.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct()
if (\defined('MAILJET_VERSION')) {
$this->version = MAILJET_VERSION;
} else {
$this->version = '5.2.21';
$this->version = '5.2.23';
}
$this->plugin_name = 'mailjet';
$this->load_dependencies();
Expand Down
2 changes: 1 addition & 1 deletion src/includes/MailjetMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function sendTestEmail()
return;
}
// Send a test mail
add_filter('wp_mail_content_type', array('MailjetPlugin\\Includes\\MailjetMail', 'set_html_content_type'));
add_filter('wp_mail_content_type', array('MailjetWp\\MailjetPlugin\\Includes\\MailjetMail', 'set_html_content_type'));
$subject = __('Your test mail from Mailjet', 'mailjet-for-wordpress');
$message = \sprintf(__('Your Mailjet configuration is ok! <br /> Site URL: %s <br /> SSL: %s <br /> Port: %s', 'mailjet-for-wordpress'), get_home_url(), get_option('mailjet_ssl') ? 'On' : 'Off', get_option('mailjet_port'));
$testSent = wp_mail(get_option('mailjet_test_address'), $subject, $message);
Expand Down
4 changes: 2 additions & 2 deletions wp-mailjet.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Mailjet for WordPress
* Plugin URI: https://www.mailjet.com/partners/wordpress/
* Description: The Best WordPress Plugin For Email Newsletters.
* Version: 5.2.21
* Version: 5.2.23
* Tested up to: 6.0.1
* Author: Mailjet SAS
* Author URI: http://mailjet.com
Expand Down Expand Up @@ -55,7 +55,7 @@
/**
* Mailjet plugin version.
*/
define('MAILJET_VERSION', '5.2.21');
define('MAILJET_VERSION', '5.2.23');

/**
* Mailjet Plugid dir.
Expand Down

0 comments on commit 566ef65

Please sign in to comment.