Limit Login Attempts Reloaded - Version 2.12.2

Version Description

  • Fixed the feedback message not being shown, again.
Download this release

Release Info

Developer wpchefgadget
Plugin Icon 128x128 Limit Login Attempts Reloaded
Version 2.12.2
Comparing to
See all releases

Code changes from version 2.12.1 to 2.12.2

core/LimitLoginAttempts.php CHANGED
@@ -1486,23 +1486,32 @@ class Limit_Login_Attempts
1486
  public function show_leave_review_notice() {
1487
 
1488
  $screen = get_current_screen();
1489
- if ( $screen->parent_base === 'edit' ) return;
 
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) {
@@ -1512,7 +1521,7 @@ class Limit_Login_Attempts
1512
  }
1513
  }
1514
 
1515
- if ( !$this->get_option('review_notice_shown') && $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
1516
 
1517
  <div id="message" class="updated fade notice llar-notice-review">
1518
  <div class="llar-review-image">
@@ -1543,7 +1552,7 @@ class Limit_Login_Attempts
1543
  action: 'dismiss_review_notice',
1544
  type: type,
1545
  sec: '<?php echo wp_create_nonce( "llar-action" ); ?>'
1546
- })
1547
 
1548
  $(this).closest('.llar-notice-review').remove();
1549
 
@@ -1574,7 +1583,7 @@ class Limit_Login_Attempts
1574
 
1575
  if ($type === 'later') {
1576
 
1577
- $this->update_option( 'activation_timestamp', time() );
1578
  }
1579
 
1580
  wp_send_json_success([]);
1486
  public function show_leave_review_notice() {
1487
 
1488
  $screen = get_current_screen();
1489
+
1490
+ if ( $this->get_option('review_notice_shown') || $screen->parent_base === 'edit' ) return;
1491
 
1492
  $activation_timestamp = $this->get_option('activation_timestamp');
1493
+ $file_changed_timestamp = filemtime(LLA_PLUGIN_DIR . 'core/Helpers.php');
1494
+
1495
+ if($file_changed_timestamp < strtotime("-1 week") && !$activation_timestamp) {
1496
+
1497
+ $activation_timestamp = $file_changed_timestamp;
1498
 
1499
+ $this->update_option( 'activation_timestamp', $activation_timestamp );
1500
 
1501
+ } else {
1502
 
1503
+ if(!$activation_timestamp || $activation_timestamp < time()) {
1504
 
1505
+ $logs = $this->get_option('logged');
1506
 
1507
+ preg_match_all('/\"date\";\i\:([0-9]+)\;/', serialize($logs), $matches);
1508
 
1509
+ if(!empty($matches[1]) && $min_time = min($matches[1])) {
1510
 
1511
+ $activation_timestamp = $min_time;
1512
+
1513
+ $this->update_option( 'activation_timestamp', $activation_timestamp );
1514
+ }
1515
  }
1516
 
1517
  if(!$activation_timestamp) {
1521
  }
1522
  }
1523
 
1524
+ if ( $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
1525
 
1526
  <div id="message" class="updated fade notice llar-notice-review">
1527
  <div class="llar-review-image">
1552
  action: 'dismiss_review_notice',
1553
  type: type,
1554
  sec: '<?php echo wp_create_nonce( "llar-action" ); ?>'
1555
+ });
1556
 
1557
  $(this).closest('.llar-notice-review').remove();
1558
 
1583
 
1584
  if ($type === 'later') {
1585
 
1586
+ $this->update_option( 'activation_timestamp', strtotime("+1 month") );
1587
  }
1588
 
1589
  wp_send_json_success([]);
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.1
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.2
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.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,6 +51,9 @@ Based on the original code from Limit Login Attemps plugin by Johan Eenfeldt.
51
 
52
  == Changelog ==
53
 
 
 
 
54
  = 2.12.1 =
55
  * Fixed the feedback message not being shown.
56
 
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.2
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.2 =
55
+ * Fixed the feedback message not being shown, again.
56
+
57
  = 2.12.1 =
58
  * Fixed the feedback message not being shown.
59