Skip to content

Commit d3583e2

Browse files
committed
released version 1.0.1
1 parent f2fd1da commit d3583e2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

app/Hooks/Handlers/AdminMenuHandler.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,20 @@ public function maybeAdminNotice()
103103
if (!current_user_can('manage_options')) {
104104
return;
105105
}
106+
106107
$connections = $this->app->make(Manager::class)->getConfig('connections');
107108

108-
if(empty($connections)) {
109+
global $wp_version;
110+
111+
$requireUpdate = version_compare($wp_version,'5.5', '<');
112+
113+
if($requireUpdate) { ?>
114+
<div class="notice notice-warning">
115+
<p>
116+
<?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); ?>
117+
</p>
118+
</div>
119+
<?php } else if(empty($connections)) {
109120
?>
110121
<div class="notice notice-warning">
111122
<p>
@@ -119,5 +130,6 @@ public function maybeAdminNotice()
119130
</div>
120131
<?php
121132
}
133+
122134
}
123135
}

readme.txt

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

0 commit comments

Comments
 (0)