Limit Login Attempts Reloaded - Version 2.25.2

Version Description

  • Security indicator fixed for multisite.
Download this release

Release Info

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

Code changes from version 2.25.1 to 2.25.2

core/LimitLoginAttempts.php CHANGED
@@ -136,8 +136,6 @@ class Limit_Login_Attempts {
136
  add_action( 'admin_init', array( $this, 'setup_cookie' ), 10 );
137
  add_action( 'admin_head', array( $this, 'welcome_page_hide_menu' ) );
138
 
139
- add_action( 'admin_menu', array( $this, 'setting_menu_alert_icon' ) );
140
-
141
  add_action( 'login_footer', array( $this, 'login_page_gdpr_message' ) );
142
  add_action( 'login_footer', array( $this, 'login_page_render_js' ), 9999 );
143
 
@@ -255,11 +253,15 @@ class Limit_Login_Attempts {
255
  add_filter( 'shake_error_codes', array( $this, 'failure_shake' ) );
256
  add_action( 'login_errors', array( $this, 'fixup_error_messages' ) );
257
 
258
- if ( $this->network_mode )
259
  add_action( 'network_admin_menu', array( $this, 'network_admin_menu' ) );
 
 
260
 
261
- if ( $this->allow_local_options )
262
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
 
 
263
 
264
  // Add notices for XMLRPC request
265
  add_filter( 'xmlrpc_login_error', array( $this, 'xmlrpc_error_messages' ) );
@@ -646,7 +648,7 @@ class Limit_Login_Attempts {
646
  */
647
  public function network_admin_menu()
648
  {
649
- add_submenu_page( 'settings.php', 'Limit Login Attempts', 'Limit Login Attempts', 'manage_options', $this->_options_page_slug, array( $this, 'options_page' ) );
650
  }
651
 
652
  public function admin_menu() {
@@ -703,6 +705,14 @@ class Limit_Login_Attempts {
703
  }
704
  }
705
 
 
 
 
 
 
 
 
 
706
  /**
707
  * Get the correct options page URI
708
  *
136
  add_action( 'admin_init', array( $this, 'setup_cookie' ), 10 );
137
  add_action( 'admin_head', array( $this, 'welcome_page_hide_menu' ) );
138
 
 
 
139
  add_action( 'login_footer', array( $this, 'login_page_gdpr_message' ) );
140
  add_action( 'login_footer', array( $this, 'login_page_render_js' ), 9999 );
141
 
253
  add_filter( 'shake_error_codes', array( $this, 'failure_shake' ) );
254
  add_action( 'login_errors', array( $this, 'fixup_error_messages' ) );
255
 
256
+ if ( $this->network_mode ) {
257
  add_action( 'network_admin_menu', array( $this, 'network_admin_menu' ) );
258
+ add_action( 'network_admin_menu', array( $this, 'network_setting_menu_alert_icon' ) );
259
+ }
260
 
261
+ if ( $this->allow_local_options ) {
262
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
263
+ add_action( 'admin_menu', array( $this, 'setting_menu_alert_icon' ) );
264
+ }
265
 
266
  // Add notices for XMLRPC request
267
  add_filter( 'xmlrpc_login_error', array( $this, 'xmlrpc_error_messages' ) );
648
  */
649
  public function network_admin_menu()
650
  {
651
+ add_submenu_page( 'settings.php', 'Limit Login Attempts', 'Limit Login Attempts' . $this->menu_alert_icon(), 'manage_options', $this->_options_page_slug, array( $this, 'options_page' ) );
652
  }
653
 
654
  public function admin_menu() {
705
  }
706
  }
707
 
708
+ public function network_setting_menu_alert_icon() {
709
+ global $menu;
710
+ if( !empty( $menu[25][0] ) ) {
711
+
712
+ $menu[25][0] .= $this->menu_alert_icon();
713
+ }
714
+ }
715
+
716
  /**
717
  * Get the correct options page URI
718
  *
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.1
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.2
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: 5.9
7
- Stable tag: 2.25.1
8
 
9
  Block excessive login attempts and protect your site against brute force attacks. Simple, yet powerful tools to improve site performance.
10
 
@@ -38,7 +38,7 @@ https://www.youtube.com/watch?v=wzmPXu55zLU
38
  * **Custom IP origins** support (Cloudflare, Sucuri, etc.)
39
 
40
  = Features (Premium Cloud App): =
41
- * **Performance Optimizer** - Brute force attacks absorbed in the cloud (Up to 100k requests monthly).
42
  * **Throttling** - Longer lockout intervals each time a hacker/bot tries to login unsuccessfully.
43
  * **Auto Backups of All Data**
44
  * **Intelligent IP Blocking/Unblocking** - Make sure the legitimate IP’s are allowed automatically.
@@ -98,6 +98,9 @@ Please follow this link: <a href="https://www.limitloginattempts.com/resources/"
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 2.25.1 =
102
  * Added setting to turn the dashboard widged off.
103
  * The widget is visible to admins only.
4
  Tags: brute force, login, security, firewall, protection
5
  Requires at least: 3.0
6
  Tested up to: 5.9
7
+ Stable tag: 2.25.2
8
 
9
  Block excessive login attempts and protect your site against brute force attacks. Simple, yet powerful tools to improve site performance.
10
 
38
  * **Custom IP origins** support (Cloudflare, Sucuri, etc.)
39
 
40
  = Features (Premium Cloud App): =
41
+ * **Performance Optimizer** - Brute force attacks absorbed in the cloud (Up to 100k requests monthly).
42
  * **Throttling** - Longer lockout intervals each time a hacker/bot tries to login unsuccessfully.
43
  * **Auto Backups of All Data**
44
  * **Intelligent IP Blocking/Unblocking** - Make sure the legitimate IP’s are allowed automatically.
98
 
99
  == Changelog ==
100
 
101
+ = 2.25.2 =
102
+ * Security indicator fixed for multisite.
103
+
104
  = 2.25.1 =
105
  * Added setting to turn the dashboard widged off.
106
  * The widget is visible to admins only.
views/admin-dashboard-widgets.php CHANGED
@@ -33,8 +33,8 @@ if ($active_app === 'local') {
33
  $retries_chart_color = '#FFCC66';
34
  } else {
35
 
36
- $retries_chart_title = __('Warning: More than 100 failed login attempts today', 'limit-login-attempts-reloaded');
37
- $retries_chart_desc = __('Your site is likely under a brute-force attack', 'limit-login-attempts-reloaded');
38
  $retries_chart_color = '#FF6633';
39
  $retries_chart_show_actions = true;
40
  }
@@ -108,9 +108,9 @@ if ($active_app === 'local') {
108
  <?php if ($retries_chart_show_actions) : ?>
109
  <div class="actions">
110
  <ol>
111
- <li><?php _e('Change your password to something more secure.', 'limit-login-attempts-reloaded'); ?></li>
112
  <li><?php _e('Make sure WordPress and all your plugins are updated.', 'limit-login-attempts-reloaded'); ?></li>
113
- <li><?php echo sprintf(__('<a href="%s" target="_blank">Update to Premium</a> Limit Login Attempts Reloaded.', 'limit-login-attempts-reloaded'), 'https://www.limitloginattempts.com/info.php?from=dashboard-widget'); ?></li>
114
  </ol>
115
  </div>
116
  <?php endif; ?>
33
  $retries_chart_color = '#FFCC66';
34
  } else {
35
 
36
+ $retries_chart_title = __('Warning: Your site is experiencing over 100 failed login attempts today', 'limit-login-attempts-reloaded');
37
+ $retries_chart_desc = __('Your site may be under a brute-force attack', 'limit-login-attempts-reloaded');
38
  $retries_chart_color = '#FF6633';
39
  $retries_chart_show_actions = true;
40
  }
108
  <?php if ($retries_chart_show_actions) : ?>
109
  <div class="actions">
110
  <ol>
111
+ <li><?php _e('Ensure your passwords are secure.', 'limit-login-attempts-reloaded'); ?></li>
112
  <li><?php _e('Make sure WordPress and all your plugins are updated.', 'limit-login-attempts-reloaded'); ?></li>
113
+ <li><?php echo sprintf(__('Consider <a href="%s" target="_blank">upgrading to premium</a> for advanced protection.', 'limit-login-attempts-reloaded'), 'https://www.limitloginattempts.com/info.php?from=dashboard-widget'); ?></li>
114
  </ol>
115
  </div>
116
  <?php endif; ?>
views/tab-dashboard.php CHANGED
@@ -35,8 +35,8 @@ if( $active_app === 'local' ) {
35
  $retries_chart_color = '#FFCC66';
36
  } else {
37
 
38
- $retries_chart_title = __( 'Warning: More than 100 failed login attempts today', 'limit-login-attempts-reloaded' );
39
- $retries_chart_desc = __( 'Your site is likely under a brute-force attack', 'limit-login-attempts-reloaded' );
40
  $retries_chart_color = '#FF6633';
41
  $retries_chart_show_actions = true;
42
  }
@@ -126,9 +126,9 @@ if( $active_app === 'local' ) {
126
  <?php if( $retries_chart_show_actions ) : ?>
127
  <div class="actions">
128
  <ol>
129
- <li><?php _e( 'Change your password to something more secure.', 'limit-login-attempts-reloaded' ); ?></li>
130
  <li><?php _e( 'Make sure WordPress and all your plugins are updated.', 'limit-login-attempts-reloaded' ); ?></li>
131
- <li><?php echo sprintf( __( '<a href="%s" target="_blank">Update to Premium</a> Limit Login Attempts Reloaded.', 'limit-login-attempts-reloaded' ), 'https://www.limitloginattempts.com/info.php?from=plugin-dashboard-status' ); ?></li>
132
  </ol>
133
  </div>
134
  <?php endif; ?>
35
  $retries_chart_color = '#FFCC66';
36
  } else {
37
 
38
+ $retries_chart_title = __( 'Warning: Your site is experiencing over 100 failed login attempts today', 'limit-login-attempts-reloaded' );
39
+ $retries_chart_desc = __( 'Your site may be under a brute-force attack', 'limit-login-attempts-reloaded' );
40
  $retries_chart_color = '#FF6633';
41
  $retries_chart_show_actions = true;
42
  }
126
  <?php if( $retries_chart_show_actions ) : ?>
127
  <div class="actions">
128
  <ol>
129
+ <li><?php _e( 'Ensure your passwords are secure.', 'limit-login-attempts-reloaded' ); ?></li>
130
  <li><?php _e( 'Make sure WordPress and all your plugins are updated.', 'limit-login-attempts-reloaded' ); ?></li>
131
+ <li><?php echo sprintf( __( 'Consider <a href="%s" target="_blank">upgrading to premium</a> for advanced protection.', 'limit-login-attempts-reloaded' ), 'https://www.limitloginattempts.com/info.php?from=plugin-dashboard-status' ); ?></li>
132
  </ol>
133
  </div>
134
  <?php endif; ?>