From 0c54b3cc85a3994bd68be63f6ab243bbb9f11636 Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailenko Date: Sun, 17 Mar 2024 12:40:48 +0200 Subject: [PATCH 1/3] Some code improvements --- src/includes/MailjetApi.php | 14 ++++++++----- .../SettingsPages/CommentAuthorsSettings.php | 20 +++++++++++++++---- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/includes/MailjetApi.php b/src/includes/MailjetApi.php index 5853ead6..128feb9e 100644 --- a/src/includes/MailjetApi.php +++ b/src/includes/MailjetApi.php @@ -395,8 +395,11 @@ public static function syncMailjetContact($contactListId, $contact, $action = 'a } catch (Exception $e) { return \false; } - $name = $contact['Properties']['firstname'] ?? ''; - $body = ['Name' => $name, 'Action' => $action, 'Email' => $contact['Email'], 'Properties' => $contact['Properties']]; + $name = ''; + if (isset($contact['Properties'])) { + $name = $contact['Properties']['firstname'] ?? ''; + } + $body = ['Name' => $name, 'Action' => $action, 'Email' => $contact['Email'], 'Properties' => $contact['Properties'] ?? []]; try { $response = $mjApiClient->post(Resources::$ContactslistManagecontact, ['id' => $contactListId, 'body' => $body]); } catch (ConnectException $e) { @@ -408,11 +411,12 @@ public static function syncMailjetContact($contactListId, $contact, $action = 'a return \false; } + /** * Return TRUE if a contact already subscribed to the list and FALSE if it is not, or is added to the list but Unsubscribed - * * @param $email * @param $listId + * @param bool $getContactId * @return bool */ public static function checkContactSubscribedToList($email, $listId, $getContactId = \false) @@ -432,8 +436,8 @@ public static function checkContactSubscribedToList($email, $listId, $getContact } if ($response->success() && $response->getCount() > 0) { $data = $response->getData(); - $exists = \true; - if (isset($data[0]['IsUnsubscribed']) && \false == $data[0]['IsUnsubscribed']) { + $exists = true; + if (isset($data[0]['IsUnsubscribed']) && !$data[0]['IsUnsubscribed']) { $existsAndSubscribed = \true; } if ($getContactId && $exists && $existsAndSubscribed) { diff --git a/src/includes/SettingsPages/CommentAuthorsSettings.php b/src/includes/SettingsPages/CommentAuthorsSettings.php index 6c096ecb..7f0d726a 100644 --- a/src/includes/SettingsPages/CommentAuthorsSettings.php +++ b/src/includes/SettingsPages/CommentAuthorsSettings.php @@ -4,6 +4,7 @@ use MailjetWp\MailjetPlugin\Includes\MailjetApi; use MailjetWp\MailjetPlugin\Includes\MailjetSettings; +use function filter_var; /** * Register all actions and filters for the plugin. @@ -18,10 +19,13 @@ */ class CommentAuthorsSettings { + /** + * @return void + */ public function mailjet_show_extra_comment_fields() { - $commentAuthorsListId = (int) get_option('mailjet_comment_authors_list'); - if ((int) get_option('activate_mailjet_comment_authors_sync') === 1 && $commentAuthorsListId > 0) { + $commentAuthorsListId = (int)get_option('mailjet_comment_authors_list'); + if ((int)get_option('activate_mailjet_comment_authors_sync') === 1 && $commentAuthorsListId > 0) { $user = wp_get_current_user(); // Display the checkbox for NOT-logged in or unsubscribed users if (empty($user->data->user_email) || !MailjetApi::checkContactSubscribedToList($user->data->user_email, $commentAuthorsListId)) { @@ -37,12 +41,20 @@ public function mailjet_show_extra_comment_fields() } } } + + /** + * @param $id + * @return void + */ public function mailjet_subscribe_comment_author($id) { - $subscribe = \filter_var($_POST['mailjet_comment_authors_subscribe_ok'], \FILTER_SANITIZE_NUMBER_INT); + if (!isset($_POST['mailjet_comment_authors_subscribe_ok'])) { + return; + } + $subscribe = filter_var($_POST['mailjet_comment_authors_subscribe_ok'], \FILTER_SANITIZE_NUMBER_INT); if ($subscribe === '1') { $comment = get_comment($id); - $authorEmail = \filter_var($comment->comment_author_email, \FILTER_SANITIZE_EMAIL); + $authorEmail = filter_var($comment->comment_author_email, \FILTER_SANITIZE_EMAIL); // We return if there is no provided email on a new comment - which is the case for WooCommerce - it adds a post and comment when making an order if (empty($authorEmail)) { return; From 9736489997f8137f3c9334c6914712e08b85f111 Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailenko Date: Wed, 20 Mar 2024 19:30:25 +0200 Subject: [PATCH 2/3] Some another fixes --- src/includes/Mailjet.php | 4 ++-- src/includes/MailjetApi.php | 36 +++++++++++++++++++------------- src/includes/MailjetLoader.php | 6 +++--- src/includes/MailjetLogger.php | 16 +++++++------- src/includes/MailjetMail.php | 16 +++++++------- src/includes/MailjetMenu.php | 8 +++---- src/includes/MailjetSettings.php | 20 +++++++++--------- 7 files changed, 55 insertions(+), 51 deletions(-) diff --git a/src/includes/Mailjet.php b/src/includes/Mailjet.php index 515b3343..4fec3485 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 = '5.5.1'; + $this->version = '5.5.4'; } $this->plugin_name = 'mailjet'; $this->load_dependencies(); @@ -75,7 +75,7 @@ public function __construct() $this->addMailjetPHPMailer(); $this->registerMailjetWidget(); - add_shortcode('mailjet_form_builder', array($this, 'display_mailjet_form_builder_widget')); + add_shortcode('mailjet_form_builder', [$this, 'display_mailjet_form_builder_widget']); } /** diff --git a/src/includes/MailjetApi.php b/src/includes/MailjetApi.php index 128feb9e..4782ba6f 100644 --- a/src/includes/MailjetApi.php +++ b/src/includes/MailjetApi.php @@ -11,10 +11,8 @@ /** * Define the internationalization functionality. - * * Loads and defines the internationalization files for this plugin * so that it is ready for translation. - * * @since 5.0.0 * @package Mailjet * @subpackage Mailjet/includes @@ -117,9 +115,9 @@ public static function isContactListActive($contactListId) } catch (Exception $e) { return \false; } - $filters = array('ID' => $contactListId); + $filters = ['ID' => $contactListId]; try { - $response = $mjApiClient->get(Resources::$Contactslist, array('filters' => $filters)); + $response = $mjApiClient->get(Resources::$Contactslist, ['filters' => $filters]); } catch (ConnectException $e) { return \false; } @@ -147,9 +145,9 @@ public static function getContactListByID($contactListId) } catch (Exception $e) { return \false; } - $filters = array('ID' => $contactListId); + $filters = ['ID' => $contactListId]; try { - $response = $mjApiClient->get(Resources::$Contactslist, array('filters' => $filters)); + $response = $mjApiClient->get(Resources::$Contactslist, ['filters' => $filters]); } catch (ConnectException $e) { return \false; } @@ -174,17 +172,17 @@ public static function getSubscribersFromList($contactListId) return \false; } $limit = 1000; - $dataArray = array(); + $dataArray = []; $offset = 0; do { - $filters = array('ContactsList' => $contactListId, 'Unsub' => \false, 'Offset' => $offset, 'Limit' => $limit, 'Style' => 'Full'); + $filters = ['ContactsList' => $contactListId, 'Unsub' => \false, 'Offset' => $offset, 'Limit' => $limit, 'Style' => 'Full']; try { - $response = $mjApiClient->get(Resources::$Listrecipient, array('filters' => $filters)); + $response = $mjApiClient->get(Resources::$Listrecipient, ['filters' => $filters]); } catch (ConnectException $e) { return \false; } if ($response->success()) { - \array_push($dataArray, $response->getData()); + $dataArray[] = $response->getData(); } else { return \false; } @@ -203,9 +201,9 @@ public static function getContactProperties() } catch (Exception $e) { return \false; } - $filters = array('limit' => 0, 'Sort' => 'Name ASC'); + $filters = ['limit' => 0, 'Sort' => 'Name ASC']; try { - $response = $mjApiClient->get(Resources::$Contactmetadata, array('filters' => $filters)); + $response = $mjApiClient->get(Resources::$Contactmetadata, ['filters' => $filters]); } catch (ConnectException $e) { return \false; } @@ -231,6 +229,7 @@ public static function getPropertyIdByName($name) } return \false; } + public static function createMailjetContactProperty($name, $type = "str") { if (empty($name)) { @@ -358,9 +357,9 @@ public static function isValidAPICredentials() return false; } + /** * Add or Remove a contact to a Mailjet contact list - It can process many or single contact at once - * * @param $contactListId - int - ID of the contact list to sync contacts * @param $contacts - array('Email' => ContactEmail, 'Name' => ContactName, 'Properties' => array(propertyName1 => propertyValue1, ...)); * @param string $action - 'addforce', 'adnoforce', 'remove' @@ -385,6 +384,7 @@ public static function syncMailjetContacts($contactListId, $contacts, $action = return false; } + /** * Add a contact to a Mailjet contact list */ @@ -446,6 +446,7 @@ public static function checkContactSubscribedToList($email, $listId, $getContact } return $exists && $existsAndSubscribed; } + /** * @throws Exception */ @@ -463,6 +464,7 @@ public static function isContactInList($email, $listId, $getContactId = \false) } return \true; } + public static function getContactDataByEmail($contactEmail) { try { @@ -476,15 +478,17 @@ public static function getContactDataByEmail($contactEmail) } return \false; } + /** * @throws Exception */ public static function updateContactData($contactEmail, $data) { $mjApiClient = self::getApiClient(); - $body = ['Data' => $data]; + $body = ['Data' => $data ?? []]; return $mjApiClient->put(['contactdata', $contactEmail], ['body' => $body]); } + public static function getProfileName() { try { @@ -506,6 +510,7 @@ public static function getProfileName() } return $name; } + public static function getTemplateByName($templateName) { try { @@ -524,6 +529,7 @@ public static function getTemplateByName($templateName) return \false; } } + public static function getTemplateDetails($id) { try { @@ -542,6 +548,7 @@ public static function getTemplateDetails($id) } return \false; } + public static function createTemplate(array $arguments) { try { @@ -564,6 +571,7 @@ public static function createTemplate(array $arguments) } return \false; } + public static function createTemplateContent(array $content) { try { diff --git a/src/includes/MailjetLoader.php b/src/includes/MailjetLoader.php index bd58cf3e..60632df0 100644 --- a/src/includes/MailjetLoader.php +++ b/src/includes/MailjetLoader.php @@ -87,7 +87,7 @@ public function add_filter($hook, $component, $callback, $priority = 10, $accept */ private function add($hooks, $hook, $component, $callback, $priority, $accepted_args) { - $hooks[] = array('hook' => $hook, 'component' => $component, 'callback' => $callback, 'priority' => $priority, 'accepted_args' => $accepted_args); + $hooks[] = ['hook' => $hook, 'component' => $component, 'callback' => $callback, 'priority' => $priority, 'accepted_args' => $accepted_args]; return $hooks; } /** @@ -98,10 +98,10 @@ private function add($hooks, $hook, $component, $callback, $priority, $accepted_ public function run() { foreach ($this->filters as $hook) { - add_filter($hook['hook'], array($hook['component'], $hook['callback']), $hook['priority'], $hook['accepted_args']); + add_filter($hook['hook'], [$hook['component'], $hook['callback']], $hook['priority'], $hook['accepted_args']); } foreach ($this->actions as $hook) { - add_action($hook['hook'], array($hook['component'], $hook['callback']), $hook['priority'], $hook['accepted_args']); + add_action($hook['hook'], [$hook['component'], $hook['callback']], $hook['priority'], $hook['accepted_args']); } } } diff --git a/src/includes/MailjetLogger.php b/src/includes/MailjetLogger.php index 749f773e..f6d6bcda 100644 --- a/src/includes/MailjetLogger.php +++ b/src/includes/MailjetLogger.php @@ -10,7 +10,7 @@ public static function log($message, $level = null) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::log($message, $level); } @@ -18,7 +18,7 @@ public static function urgent($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::urgent($message); } @@ -26,7 +26,7 @@ public static function alert($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::alert($message); } @@ -34,7 +34,7 @@ public static function error($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::error($message); } @@ -42,7 +42,7 @@ public static function warning($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::warning($message); } @@ -50,7 +50,7 @@ public static function notice($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::notice($message); } @@ -58,7 +58,7 @@ public static function info($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::info($message); } @@ -66,7 +66,7 @@ public static function debug($message) { $mailjetActivateLogger = get_option('mailjet_activate_logger'); if (empty($mailjetActivateLogger) || $mailjetActivateLogger != 1) { - return; + return ''; } return Analog::debug($message); } diff --git a/src/includes/MailjetMail.php b/src/includes/MailjetMail.php index d727d900..42f17640 100644 --- a/src/includes/MailjetMail.php +++ b/src/includes/MailjetMail.php @@ -15,8 +15,8 @@ */ class MailjetMail { - const MJ_HOST = 'in-v3.mailjet.com'; - const MJ_MAILER = 'X-Mailer:WP-Mailjet/0.1'; + public const MJ_HOST = 'in-v3.mailjet.com'; + public const MJ_MAILER = 'X-Mailer:WP-Mailjet/0.1'; public function __construct() { if (\version_compare(get_bloginfo('version'), '5.5-alpha', '<')) { @@ -29,7 +29,7 @@ public function __construct() } public function phpmailer_init_smtp($phpmailer) { - if (!get_option('mailjet_enabled') || 0 == get_option('mailjet_enabled')) { + if (!get_option('mailjet_enabled') || 0 === (int)get_option('mailjet_enabled')) { return; } $phpmailer->Mailer = 'smtp'; @@ -58,7 +58,7 @@ public function wp_mail_failed_cb($wpError) public function wp_mail_failed_admin_notice() { global $pagenow; - if ($pagenow == 'index.php') { + if ($pagenow === 'index.php') { $user = wp_get_current_user(); if ($user->exists()) { echo '
' . __('Email sending failed. Please review your smtp configuration and try again later', 'mailjet-for-wordpress') . '
'; @@ -70,15 +70,13 @@ public static function sendTestEmail() $testSent = \false; $mailjetTestAddress = get_option('mailjet_test_address'); if (empty($mailjetTestAddress)) { - //MailjetLogger::error('[ Mailjet ] [ ' . __METHOD__ . ' ] [ Line #' . __LINE__ . ' ] [ Missing email address to send test email to ]'); - return; + return $testSent; } // Send a test mail - add_filter('wp_mail_content_type', array('MailjetWp\\MailjetPlugin\\Includes\\MailjetMail', 'set_html_content_type')); + add_filter('wp_mail_content_type', ['MailjetWp\\MailjetPlugin\\Includes\\MailjetMail', 'set_html_content_type']); $subject = __('Your test mail from Mailjet', 'mailjet-for-wordpress'); $message = \sprintf(__('Your Mailjet configuration is ok!
Site URL: %s
SSL: %s
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); - return $testSent; + return wp_mail(get_option('mailjet_test_address'), $subject, $message); } public static function set_html_content_type() { diff --git a/src/includes/MailjetMenu.php b/src/includes/MailjetMenu.php index 46baa06c..5cf2e55d 100644 --- a/src/includes/MailjetMenu.php +++ b/src/includes/MailjetMenu.php @@ -35,8 +35,7 @@ class MailjetMenu public function display_menu() { if (current_user_can(UserAccessSettings::ACCESS_CAP_NAME)) { - //TODO WORK HERE - add_menu_page(__('Connect your Mailjet account to get started', 'mailjet-for-wordpress'), 'Mailjet', 'read', 'mailjet_settings_page', [new InitialSettings(), 'mailjet_initial_settings_page_html'], plugin_dir_url(\dirname(__FILE__)) . 'admin/images/mj_logo_small.png'); + add_menu_page(__('Connect your Mailjet account to get started', 'mailjet-for-wordpress'), 'Mailjet', 'read', 'mailjet_settings_page', [new InitialSettings(), 'mailjet_initial_settings_page_html'], plugin_dir_url(__DIR__) . 'admin/images/mj_logo_small.png'); if (\function_exists('add_submenu_page')) { add_submenu_page('', __('Manage your Mailjet lists', 'mailjet-for-wordpress'), __('Lists', 'mailjet-for-wordpress'), 'read', 'mailjet_settings_contacts_menu', [$this, 'show_contacts_page']); add_submenu_page('', __('Manage your Mailjet campaigns', 'mailjet-for-wordpress'), __('Campaigns', 'mailjet-for-wordpress'), 'read', 'mailjet_settings_campaigns_menu', [$this, 'show_campaigns_page']); @@ -59,7 +58,6 @@ public function display_menu() add_submenu_page('', __('User access', 'mailjet-for-wordpress'), null, 'read', 'mailjet_user_access_page', [new UserAccessSettings(), 'mailjet_user_access_page_html']); add_submenu_page('', __('Integrations', 'mailjet-for-wordpress'), null, 'read', 'mailjet_integrations_page', [new IntegrationsSettings(), 'mailjet_integrations_page_html']); // Add old initial page to fix settings link after update - //add_submenu_page(null, 'Temporary page', null, 'read', 'wp_mailjet_options_top_menu', array($this, 'wp_mailjet_options_top')); } } else { MailjetLogger::error('[ Mailjet ] [ ' . __METHOD__ . ' ] [ Line #' . __LINE__ . ' ] [ Current user don\'t have required permissions to see Mailjet plugin ]'); @@ -204,7 +202,7 @@ public function show_template_page() { try { $mailjetIframe = $this->getMailjetIframe(); - $templateId = sanitize_text_field($_GET['id']); + $templateId = sanitize_text_field($_GET['id'] ?? ''); if (isset($templateId)) { $mailjetIframe->setInitialPage(MailjetIframe::PAGE_EDIT_TEMPLATE, $templateId); } else { @@ -232,7 +230,7 @@ public function show_template_page() $backButtonLink = 'admin.php?page=mailjet_dashboard_page'; break; } - set_query_var('iframeHtml', $iframeHtml); + set_query_var('iframeHtml', $iframeHtml ?? ''); set_query_var('backButtonLink', $backButtonLink); set_query_var('backButtonText', $backButtonText); load_template(MAILJET_ADMIN_TAMPLATE_DIR . '/Iframe/longerIframePage.php'); diff --git a/src/includes/MailjetSettings.php b/src/includes/MailjetSettings.php index f101b492..d09f6e87 100644 --- a/src/includes/MailjetSettings.php +++ b/src/includes/MailjetSettings.php @@ -90,7 +90,7 @@ public function mailjet_settings_init() $fromPage = !empty($_REQUEST['from']) ? sanitize_text_field($_REQUEST['from']) : null; if (\in_array($currentPage, array('mailjet_allsetup_page', 'mailjet_dashboard_page', 'mailjet_user_access_page', 'mailjet_integrations_page', 'mailjet_subscription_options_page', 'mailjet_sending_settings_page', 'mailjet_connect_account_page', 'mailjet_initial_contact_lists_page', 'mailjet_settings_page'))) { $apiCredentialsOk = get_option('api_credentials_ok'); - if (!($fromPage == 'plugins') && !empty($apiCredentialsOk) && '1' != $apiCredentialsOk) { + if (!($fromPage === 'plugins') && !empty($apiCredentialsOk) && '1' != $apiCredentialsOk) { self::redirectJs(admin_url('/admin.php?page=mailjet_settings_page')); } } @@ -107,30 +107,30 @@ private function addMailjetActions() if (!empty($activate_mailjet_sync) && !empty($mailjet_sync_list)) { $subscriptionOptionsSettings = SubscriptionOptionsSettings::getInstance(); // Check after login if the user is subscribed to the contact list - add_action('wp_login', array($subscriptionOptionsSettings, 'checkUserSubscription'), 10, 2); + add_action('wp_login', [$subscriptionOptionsSettings, 'checkUserSubscription'], 10, 2); // When user is viewing another users profile page (not their own). - add_action('edit_user_profile', array($subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields')); + add_action('edit_user_profile', [$subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields']); // - If you want to apply your hook to ALL profile pages (including the current user) then you also need to use this one. - add_action('show_user_profile', array($subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields')); + add_action('show_user_profile', [$subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields']); // Runs just before the end of the new user registration form. if (get_option('activate_mailjet_woo_integration') === '1') { - add_action('woocommerce_edit_account_form', array($subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields')); + add_action('woocommerce_edit_account_form', [$subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields']); } // Runs just before the end of the new user registration form. - add_action('register_form', array($subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields')); + add_action('register_form', [$subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields']); // Runs near the end of the "Add New" user screen. - add_action('user_new_form', array($subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields')); + add_action('user_new_form', [$subscriptionOptionsSettings, 'mailjet_show_extra_profile_fields']); // Runs when a user's profile is updated. Action function argument: user ID. - add_action('profile_update', array($subscriptionOptionsSettings, 'mailjet_save_extra_profile_fields')); + add_action('profile_update', [$subscriptionOptionsSettings, 'mailjet_save_extra_profile_fields']); // Runs immediately after the new user is added to the database. - add_action('user_register', array($subscriptionOptionsSettings, 'mailjet_register_user')); + add_action('user_register', [$subscriptionOptionsSettings, 'mailjet_register_user']); } /* Add custom field to comment form and process it on form submit */ $activate_mailjet_comment_authors_sync = (int) get_option('activate_mailjet_comment_authors_sync'); $mailjet_comment_authors_list = (int) get_option('mailjet_comment_authors_list'); if ($activate_mailjet_comment_authors_sync === 1 && $mailjet_comment_authors_list > 1) { $commentAuthorsSettings = new CommentAuthorsSettings(); - if (wp_get_current_user()->exists()) { + if (null !== wp_get_current_user() && wp_get_current_user()->exists()) { add_action('comment_form', array($commentAuthorsSettings, 'mailjet_show_extra_comment_fields')); } else { add_action('comment_form_after_fields', array($commentAuthorsSettings, 'mailjet_show_extra_comment_fields')); From 1f92dc7e31f7fd3b2c41f9b1f1d584bce7bb5037 Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailenko Date: Wed, 20 Mar 2024 19:31:43 +0200 Subject: [PATCH 3/3] Some another fixes --- CHANGELOG.md | 3 +++ README.md | 2 +- readme.txt | 2 +- wp-mailjet.php | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d85c19ac..d4c3c44c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog +##### 5.5.4 +* Code improvements. Fix possible warnings and notices. + ##### 5.5.0 * Fixed bug with redirect problem during initial step * Fixed links in the readme file and in the plugin diff --git a/README.md b/README.md index 5a25a69d..ae50da91 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7 - Requires at least: 4.4 - Tested up to: 6.4.3 -- Stable tag: 5.5.3 +- Stable tag: 5.5.4 - Requires PHP: 7.4 - License: GPLv2 or later - License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/readme.txt b/readme.txt index 0edb8599..7b4ab6df 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: Mailjet Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7 Requires at least: 4.4 Tested up to: 6.4.3 -Stable tag: 5.5.3 +Stable tag: 5.5.4 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/wp-mailjet.php b/wp-mailjet.php index 60b4c7a1..a8e4cee9 100755 --- a/wp-mailjet.php +++ b/wp-mailjet.php @@ -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.5.3 + * Version: 5.5.4 * Tested up to: 6.4.3 * Author: Mailjet SAS * Author URI: http://mailjet.com