Limit Login Attempts Reloaded - Version 2.15.2

Version Description

  • Alternative method of closing the feedback message.
Download this release

Release Info

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

Code changes from version 2.15.1 to 2.15.2

core/LimitLoginAttempts.php CHANGED
@@ -1452,6 +1452,12 @@ class Limit_Login_Attempts
1452
 
1453
  $screen = get_current_screen();
1454
 
 
 
 
 
 
 
1455
  if ( !current_user_can('manage_options') || $this->get_option('review_notice_shown') || $screen->parent_base === 'edit' ) return;
1456
 
1457
  $activation_timestamp = $this->get_option('activation_timestamp');
@@ -1488,7 +1494,7 @@ class Limit_Login_Attempts
1488
 
1489
  if ( $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
1490
 
1491
- <div id="message" class="updated fade notice llar-notice-review">
1492
  <div class="llar-review-image">
1493
  <img width="80px" src="<?php echo LLA_PLUGIN_URL?>assets/img/icon-256x256.png" alt="review-logo">
1494
  </div>
@@ -1521,6 +1527,23 @@ class Limit_Login_Attempts
1521
 
1522
  $(this).closest('.llar-notice-review').remove();
1523
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1524
  });
1525
 
1526
  })(jQuery);
1452
 
1453
  $screen = get_current_screen();
1454
 
1455
+ if(isset($_COOKIE['llar_review_notice_shown'])) {
1456
+
1457
+ $this->update_option('review_notice_shown', true);
1458
+ @setcookie('llar_review_notice_shown', '', time() - 3600, '/');
1459
+ }
1460
+
1461
  if ( !current_user_can('manage_options') || $this->get_option('review_notice_shown') || $screen->parent_base === 'edit' ) return;
1462
 
1463
  $activation_timestamp = $this->get_option('activation_timestamp');
1494
 
1495
  if ( $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
1496
 
1497
+ <div id="message" class="updated fade notice is-dismissible llar-notice-review">
1498
  <div class="llar-review-image">
1499
  <img width="80px" src="<?php echo LLA_PLUGIN_URL?>assets/img/icon-256x256.png" alt="review-logo">
1500
  </div>
1527
 
1528
  $(this).closest('.llar-notice-review').remove();
1529
  });
1530
+
1531
+ $(".llar-notice-review").on("click", ".notice-dismiss", function (event) {
1532
+ createCookie('llar_review_notice_shown', '1', 30);
1533
+ });
1534
+
1535
+ function createCookie(name, value, days) {
1536
+ var expires;
1537
+
1538
+ if (days) {
1539
+ var date = new Date();
1540
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
1541
+ expires = "; expires=" + date.toGMTString();
1542
+ } else {
1543
+ expires = "";
1544
+ }
1545
+ document.cookie = encodeURIComponent(name) + "=" + encodeURIComponent(value) + expires + "; path=/";
1546
+ }
1547
  });
1548
 
1549
  })(jQuery);
limit-login-attempts-reloaded.php CHANGED
@@ -5,7 +5,7 @@ Description: Limit the rate of login attempts for each IP address.
5
  Author: WPChef
6
  Author URI: https://wpchef.org
7
  Text Domain: limit-login-attempts-reloaded
8
- Version: 2.15.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.15.2
9
 
10
  Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2020 WPChef
11
  */
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  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.15.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.15.1 =
55
  * Refactoring.
56
 
2
  Contributors: wpchefgadget
3
  Tags: brute force, login, security, GDPR, protection
4
  Requires at least: 3.0
5
+ Tested up to: 5.5
6
+ Stable tag: 2.15.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.15.2 =
55
+ * Alternative method of closing the feedback message.
56
+
57
  = 2.15.1 =
58
  * Refactoring.
59