Skip to content

Commit

Permalink
released version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
techjewel committed Jan 24, 2021
1 parent f2fd1da commit d3583e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion app/Hooks/Handlers/AdminMenuHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,20 @@ public function maybeAdminNotice()
if (!current_user_can('manage_options')) {
return;
}

$connections = $this->app->make(Manager::class)->getConfig('connections');

if(empty($connections)) {
global $wp_version;

$requireUpdate = version_compare($wp_version,'5.5', '<');

if($requireUpdate) { ?>
<div class="notice notice-warning">
<p>
<?php echo sprintf(__('WordPress version 5.5 or greater is required for FluentSMTP. You are using version %s currently. Please update your WordPress Core to use FluentSMTP Plugin.', 'fluent-smtp'), $wp_version); ?>
</p>
</div>
<?php } else if(empty($connections)) {
?>
<div class="notice notice-warning">
<p>
Expand All @@ -119,5 +130,6 @@ public function maybeAdminNotice()
</div>
<?php
}

}
}
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== FluentSMTP - WordPress Mail SMTP, SES, SendGrid, MailGun Plugin ===
Contributors: techjewel, wpmanageninja, heera, adreastrian
Tags: smtp, amazon ses, fluent smtp, wordpress smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, sendinblue, wp smtp
Requires at least: 5.0
Requires at least: 5.5
Tested up to: 5.6
Stable tag: 1.0.1
Requires PHP: 5.5.0
Requires PHP: 5.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit d3583e2

Please sign in to comment.