Version Description
- Fixed Woocommerce integration
- Updated some interface links
Download this release
Release Info
Developer | wpchefgadget |
Plugin | Limit Login Attempts Reloaded |
Version | 2.25.5 |
Comparing to | |
See all releases |
Code changes from version 2.25.4 to 2.25.5
- core/LimitLoginAttempts.php +11 -2
- limit-login-attempts-reloaded.php +1 -1
- readme.txt +5 -1
core/LimitLoginAttempts.php
CHANGED
@@ -144,6 +144,7 @@ class Limit_Login_Attempts {
|
|
144 |
|
145 |
add_action( 'login_footer', array( $this, 'login_page_gdpr_message' ) );
|
146 |
add_action( 'login_footer', array( $this, 'login_page_render_js' ), 9999 );
|
|
|
147 |
|
148 |
if( !$this->get_option( 'hide_dashboard_widget' ) )
|
149 |
add_action( 'wp_dashboard_setup', array( $this, 'register_dashboard_widgets' ) );
|
@@ -312,7 +313,8 @@ class Limit_Login_Attempts {
|
|
312 |
public function login_page_render_js() {
|
313 |
global $limit_login_just_lockedout;
|
314 |
|
315 |
-
|
|
|
316 |
<script>
|
317 |
;(function($) {
|
318 |
var ajaxUrlObj = new URL('<?php echo admin_url( 'admin-ajax.php' ); ?>');
|
@@ -324,6 +326,7 @@ class Limit_Login_Attempts {
|
|
324 |
}, function(response) {
|
325 |
if(response.success && response.data) {
|
326 |
$('#login_error').append("<br>" + response.data);
|
|
|
327 |
}
|
328 |
})
|
329 |
})(jQuery)
|
@@ -336,9 +339,15 @@ class Limit_Login_Attempts {
|
|
336 |
|
337 |
$actions = array_merge( array(
|
338 |
'<a href="' . $this->get_options_page_uri( 'settings' ) . '">' . __( 'Settings', 'limit-login-attempts-reloaded' ) . '</a>',
|
339 |
-
'<a href="https://www.limitloginattempts.com/info.php?from=plugin-plugins" target="_blank" style="font-weight: bold;">' . __( 'Premium Support', 'limit-login-attempts-reloaded' ) . '</a>',
|
340 |
), $actions );
|
341 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
return $actions;
|
343 |
}
|
344 |
|
144 |
|
145 |
add_action( 'login_footer', array( $this, 'login_page_gdpr_message' ) );
|
146 |
add_action( 'login_footer', array( $this, 'login_page_render_js' ), 9999 );
|
147 |
+
add_action( 'wp_footer', array( $this, 'login_page_render_js' ), 9999 );
|
148 |
|
149 |
if( !$this->get_option( 'hide_dashboard_widget' ) )
|
150 |
add_action( 'wp_dashboard_setup', array( $this, 'register_dashboard_widgets' ) );
|
313 |
public function login_page_render_js() {
|
314 |
global $limit_login_just_lockedout;
|
315 |
|
316 |
+
if( ( isset( $_POST['log'] ) || ( function_exists( 'is_account_page' ) && is_account_page() && isset( $_POST['username'] ) ) ) &&
|
317 |
+
($this->is_limit_login_ok() || $limit_login_just_lockedout ) ) : ?>
|
318 |
<script>
|
319 |
;(function($) {
|
320 |
var ajaxUrlObj = new URL('<?php echo admin_url( 'admin-ajax.php' ); ?>');
|
326 |
}, function(response) {
|
327 |
if(response.success && response.data) {
|
328 |
$('#login_error').append("<br>" + response.data);
|
329 |
+
$('.woocommerce-error').append("<li>(" + response.data + ")</li>");
|
330 |
}
|
331 |
})
|
332 |
})(jQuery)
|
339 |
|
340 |
$actions = array_merge( array(
|
341 |
'<a href="' . $this->get_options_page_uri( 'settings' ) . '">' . __( 'Settings', 'limit-login-attempts-reloaded' ) . '</a>',
|
|
|
342 |
), $actions );
|
343 |
|
344 |
+
if($this->get_option( 'active_app' ) === 'local') {
|
345 |
+
|
346 |
+
$actions = array_merge( $actions , array(
|
347 |
+
'<a href="https://www.limitloginattempts.com/info.php?from=plugin-plugins" target="_blank" style="font-weight: bold;">' . __( 'Upgrade', 'limit-login-attempts-reloaded' ) . '</a>',
|
348 |
+
));
|
349 |
+
}
|
350 |
+
|
351 |
return $actions;
|
352 |
}
|
353 |
|
limit-login-attempts-reloaded.php
CHANGED
@@ -5,7 +5,7 @@ Description: Block excessive login attempts and protect your site against brute
|
|
5 |
Author: Limit Login Attempts Reloaded
|
6 |
Author URI: https://www.limitloginattempts.com/
|
7 |
Text Domain: limit-login-attempts-reloaded
|
8 |
-
Version: 2.25.
|
9 |
|
10 |
Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2022 Limit Login Attempts Reloaded
|
11 |
*/
|
5 |
Author: Limit Login Attempts Reloaded
|
6 |
Author URI: https://www.limitloginattempts.com/
|
7 |
Text Domain: limit-login-attempts-reloaded
|
8 |
+
Version: 2.25.5
|
9 |
|
10 |
Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2022 Limit Login Attempts Reloaded
|
11 |
*/
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/donate?hosted_button_id=FKD4MYFCMNVQQ
|
|
4 |
Tags: brute force, login, security, firewall, protection
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 2.25.
|
8 |
|
9 |
Block excessive login attempts and protect your site against brute force attacks. Simple, yet powerful tools to improve site performance.
|
10 |
|
@@ -98,6 +98,10 @@ Please follow this link: <a href="https://www.limitloginattempts.com/resources/"
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
|
|
101 |
= 2.25.4 =
|
102 |
* Fixed session error in rare cases.
|
103 |
* Access rules explained.
|
4 |
Tags: brute force, login, security, firewall, protection
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 2.25.5
|
8 |
|
9 |
Block excessive login attempts and protect your site against brute force attacks. Simple, yet powerful tools to improve site performance.
|
10 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 2.25.5 =
|
102 |
+
* Fixed Woocommerce integration
|
103 |
+
* Updated some interface links
|
104 |
+
|
105 |
= 2.25.4 =
|
106 |
* Fixed session error in rare cases.
|
107 |
* Access rules explained.
|