Version Description
- Fixed the feedback message not being shown.
Download this release
Release Info
Developer | wpchefgadget |
Plugin | Limit Login Attempts Reloaded |
Version | 2.12.1 |
Comparing to | |
See all releases |
Code changes from version 2.12.0 to 2.12.1
- core/LimitLoginAttempts.php +19 -3
- limit-login-attempts-reloaded.php +1 -1
- readme.txt +4 -1
core/LimitLoginAttempts.php
CHANGED
@@ -1490,10 +1490,26 @@ class Limit_Login_Attempts
|
|
1490 |
|
1491 |
$activation_timestamp = $this->get_option('activation_timestamp');
|
1492 |
|
1493 |
-
|
1494 |
|
1495 |
-
|
1496 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1497 |
}
|
1498 |
|
1499 |
if ( !$this->get_option('review_notice_shown') && $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
|
1490 |
|
1491 |
$activation_timestamp = $this->get_option('activation_timestamp');
|
1492 |
|
1493 |
+
$plugin_info = get_plugin_data(LLA_PLUGIN_DIR.'limit-login-attempts-reloaded.php');
|
1494 |
|
1495 |
+
if(!$activation_timestamp || ($activation_timestamp && !empty($plugin_info['Version']) && version_compare($plugin_info['Version'], '2.12.0', '=='))) {
|
1496 |
+
|
1497 |
+
$logs = $this->get_option('logged');
|
1498 |
+
|
1499 |
+
preg_match_all('/\"date\";\i\:([0-9]+)\;/', serialize($logs), $matches);
|
1500 |
+
|
1501 |
+
if(!empty($matches[1]) && $min_time = min($matches[1])) {
|
1502 |
+
|
1503 |
+
$activation_timestamp = $min_time;
|
1504 |
+
|
1505 |
+
$this->update_option( 'activation_timestamp', $activation_timestamp );
|
1506 |
+
}
|
1507 |
+
|
1508 |
+
if(!$activation_timestamp) {
|
1509 |
+
|
1510 |
+
// Write time when the plugin is activated
|
1511 |
+
$this->update_option( 'activation_timestamp', time());
|
1512 |
+
}
|
1513 |
}
|
1514 |
|
1515 |
if ( !$this->get_option('review_notice_shown') && $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
|
limit-login-attempts-reloaded.php
CHANGED
@@ -5,7 +5,7 @@ Description: Limit the rate of login attempts, including by way of cookies and f
|
|
5 |
Author: WPChef
|
6 |
Author URI: https://wpchef.org
|
7 |
Text Domain: limit-login-attempts-reloaded
|
8 |
-
Version: 2.12.
|
9 |
|
10 |
Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2020 WPChef
|
11 |
*/
|
5 |
Author: WPChef
|
6 |
Author URI: https://wpchef.org
|
7 |
Text Domain: limit-login-attempts-reloaded
|
8 |
+
Version: 2.12.1
|
9 |
|
10 |
Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2020 WPChef
|
11 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: wpchefgadget
|
|
3 |
Tags: brute force, login, security, GDPR, protection
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4
|
6 |
-
Stable tag: 2.12.
|
7 |
|
8 |
Reloaded version of the original Limit Login Attempts plugin for Login Protection by a team of WordPress developers. GDPR compliant.
|
9 |
|
@@ -51,6 +51,9 @@ Based on the original code from Limit Login Attemps plugin by Johan Eenfeldt.
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 2.12.0 =
|
55 |
* Small refactoring.
|
56 |
* get_message() - fixed error notices.
|
3 |
Tags: brute force, login, security, GDPR, protection
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 2.12.1
|
7 |
|
8 |
Reloaded version of the original Limit Login Attempts plugin for Login Protection by a team of WordPress developers. GDPR compliant.
|
9 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 2.12.1 =
|
55 |
+
* Fixed the feedback message not being shown.
|
56 |
+
|
57 |
= 2.12.0 =
|
58 |
* Small refactoring.
|
59 |
* get_message() - fixed error notices.
|