diff --git a/README.md b/README.md index 9f24c7f4..de7bd729 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.2.2 -- Stable tag: 5.5.0 +- Stable tag: 5.5.1 - Requires PHP: 5.6 - License: GPLv2 or later - License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/readme.txt b/readme.txt index 62eb5a54..f1c830c1 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.2.2 -Stable tag: 5.5.0 +Stable tag: 5.5.1 Requires PHP: 5.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/src/includes/Mailjet.php b/src/includes/Mailjet.php index e9002cb9..515b3343 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.4.6'; + $this->version = '5.5.1'; } $this->plugin_name = 'mailjet'; $this->load_dependencies(); diff --git a/src/includes/SettingsPages/ConnectAccountSettings.php b/src/includes/SettingsPages/ConnectAccountSettings.php index 311a6dd3..d77148aa 100644 --- a/src/includes/SettingsPages/ConnectAccountSettings.php +++ b/src/includes/SettingsPages/ConnectAccountSettings.php @@ -70,11 +70,6 @@ public function mailjet_connect_account_cb($args) */ public function mailjet_connect_account_page_html() { - // check user capabilities - if (!current_user_can('read')) { - MailjetLogger::error('[ Mailjet ] [ ' . __METHOD__ . ' ] [ Line #' . __LINE__ . ' ] [ Current user don\'t have \\`manage_options\\` permission ]'); - return; - } // register a new section in the "mailjet" page add_settings_section('mailjet_section_connect_account_settings', null, array($this, 'mailjet_section_connect_account_cb'), 'mailjet_connect_account_page'); // register a new field in the "mailjet_section_developers" section, inside the "mailjet" page diff --git a/src/includes/SettingsPages/Dashboard.php b/src/includes/SettingsPages/Dashboard.php index 3ffa339e..62eeb260 100644 --- a/src/includes/SettingsPages/Dashboard.php +++ b/src/includes/SettingsPages/Dashboard.php @@ -31,11 +31,6 @@ public function mailjet_dashboard_page_html() if (!MailjetApi::isValidAPICredentials()) { MailjetSettings::redirectJs(admin_url('/admin.php?page=mailjet_settings_page&from=plugins')); } - // check user capabilities - if (!current_user_can('read')) { - MailjetLogger::error('[ Mailjet ] [ ' . __METHOD__ . ' ] [ Line #' . __LINE__ . ' ] [ Current user don\'t have \\`manage_options\\` permission ]'); - return; - } ?>
diff --git a/src/includes/SettingsPages/InitialSettings.php b/src/includes/SettingsPages/InitialSettings.php index 25c8f54e..7f04f467 100644 --- a/src/includes/SettingsPages/InitialSettings.php +++ b/src/includes/SettingsPages/InitialSettings.php @@ -86,11 +86,6 @@ public function mailjet_initial_settings_cb($args) public function mailjet_initial_settings_page_html() { $fromPage = !empty($_REQUEST['from']) ? sanitize_text_field($_REQUEST['from']) : null; - // check user capabilities - if (!current_user_can('read')) { - MailjetLogger::error('[ Mailjet ] [ ' . __METHOD__ . ' ] [ Line #' . __LINE__ . ' ] [ Current user don\'t have \\`manage_options\\` permission ]'); - return; - } // register a new section in the "mailjet" page add_settings_section('mailjet_section_initial_settings', null, [$this, 'mailjet_section_initial_settings_cb'], 'mailjet_initial_settings_page'); // register a new field in the "mailjet_section_developers" section, inside the "mailjet" page diff --git a/src/includes/SettingsPages/UserAccessSettings.php b/src/includes/SettingsPages/UserAccessSettings.php index 48318cee..2fc791a2 100644 --- a/src/includes/SettingsPages/UserAccessSettings.php +++ b/src/includes/SettingsPages/UserAccessSettings.php @@ -107,11 +107,6 @@ public function user_access_post_handler() */ public function mailjet_user_access_page_html() { - // check user capabilities - if (!current_user_can('read')) { - MailjetLogger::error('[ Mailjet ] [ ' . __METHOD__ . ' ] [ Line #' . __LINE__ . ' ] [ Current user don\'t have \\`manage_options\\` permission ]'); - return; - } // register a new section in the "mailjet" page add_settings_section('mailjet_user_access_settings', null, array($this, 'mailjet_section_user_access_cb'), 'mailjet_user_access_page'); // register a new field in the "mailjet_section_developers" section, inside the "mailjet" page diff --git a/wp-mailjet.php b/wp-mailjet.php index be1716f8..17f4f944 100755 --- a/wp-mailjet.php +++ b/wp-mailjet.php @@ -56,7 +56,7 @@ /** * Mailjet plugin version. */ -define('MAILJET_VERSION', '5.5.0'); +define('MAILJET_VERSION', '5.5.1'); /** * Mailjet Plugid dir.