Version Description
- The feedback message is shown for admins only now, and it can also be closed even if the site has issues with AJAX.
Download this release
Release Info
Developer | wpchefgadget |
Plugin | Limit Login Attempts Reloaded |
Version | 2.12.3 |
Comparing to | |
See all releases |
Code changes from version 2.12.2 to 2.12.3
- core/LimitLoginAttempts.php +26 -3
- limit-login-attempts-reloaded.php +1 -1
- readme.txt +4 -1
core/LimitLoginAttempts.php
CHANGED
@@ -1487,7 +1487,13 @@ class Limit_Login_Attempts
|
|
1487 |
|
1488 |
$screen = get_current_screen();
|
1489 |
|
1490 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1491 |
|
1492 |
$activation_timestamp = $this->get_option('activation_timestamp');
|
1493 |
$file_changed_timestamp = filemtime(LLA_PLUGIN_DIR . 'core/Helpers.php');
|
@@ -1523,7 +1529,7 @@ class Limit_Login_Attempts
|
|
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">
|
1528 |
<img width="80px" src="<?php echo LLA_PLUGIN_URL?>assets/img/icon-256x256.png" alt="review-logo">
|
1529 |
</div>
|
@@ -1555,8 +1561,25 @@ class Limit_Login_Attempts
|
|
1555 |
});
|
1556 |
|
1557 |
$(this).closest('.llar-notice-review').remove();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1558 |
|
1559 |
-
})
|
1560 |
});
|
1561 |
|
1562 |
})(jQuery);
|
1487 |
|
1488 |
$screen = get_current_screen();
|
1489 |
|
1490 |
+
if(isset($_COOKIE['llar_review_notice_shown'])) {
|
1491 |
+
|
1492 |
+
$this->update_option('review_notice_shown', true);
|
1493 |
+
@setcookie('llar_review_notice_shown', '', time() - 3600, '/');
|
1494 |
+
}
|
1495 |
+
|
1496 |
+
if ( !current_user_can('manage_options') || $this->get_option('review_notice_shown') || $screen->parent_base === 'edit' ) return;
|
1497 |
|
1498 |
$activation_timestamp = $this->get_option('activation_timestamp');
|
1499 |
$file_changed_timestamp = filemtime(LLA_PLUGIN_DIR . 'core/Helpers.php');
|
1529 |
|
1530 |
if ( $activation_timestamp && $activation_timestamp < strtotime("-1 month") ) { ?>
|
1531 |
|
1532 |
+
<div id="message" class="updated fade notice is-dismissible llar-notice-review">
|
1533 |
<div class="llar-review-image">
|
1534 |
<img width="80px" src="<?php echo LLA_PLUGIN_URL?>assets/img/icon-256x256.png" alt="review-logo">
|
1535 |
</div>
|
1561 |
});
|
1562 |
|
1563 |
$(this).closest('.llar-notice-review').remove();
|
1564 |
+
});
|
1565 |
+
|
1566 |
+
$(".llar-notice-review").on("click", ".notice-dismiss", function (event) {
|
1567 |
+
createCookie('llar_review_notice_shown', '1', 30);
|
1568 |
+
});
|
1569 |
+
|
1570 |
+
function createCookie(name, value, days) {
|
1571 |
+
var expires;
|
1572 |
+
|
1573 |
+
if (days) {
|
1574 |
+
var date = new Date();
|
1575 |
+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
1576 |
+
expires = "; expires=" + date.toGMTString();
|
1577 |
+
} else {
|
1578 |
+
expires = "";
|
1579 |
+
}
|
1580 |
+
document.cookie = encodeURIComponent(name) + "=" + encodeURIComponent(value) + expires + "; path=/";
|
1581 |
+
}
|
1582 |
|
|
|
1583 |
});
|
1584 |
|
1585 |
})(jQuery);
|
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.3
|
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.2 =
|
55 |
* Fixed the feedback message not being shown, again.
|
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.3
|
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.3 =
|
55 |
+
* The feedback message is shown for admins only now, and it can also be closed even if the site has issues with AJAX.
|
56 |
+
|
57 |
= 2.12.2 =
|
58 |
* Fixed the feedback message not being shown, again.
|
59 |
|