Limit Login Attempts Reloaded - Version 2.17.1

Version Description

= * CSS cache issue fixed. * Notification text updated.

Download this release

Release Info

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

Code changes from version 2.17.0 to 2.17.1

core/LimitLoginAttempts.php CHANGED
@@ -480,8 +480,11 @@ class Limit_Login_Attempts {
480
  * Enqueue js and css
481
  */
482
  public function enqueue() {
483
- wp_enqueue_style( 'lla-main', LLA_PLUGIN_URL . 'assets/css/limit-login-attempts.css' );
484
- wp_enqueue_script( 'lla-main', LLA_PLUGIN_URL . 'assets/js/limit-login-attempts.js' );
 
 
 
485
  }
486
 
487
  /**
@@ -873,24 +876,21 @@ class Limit_Login_Attempts {
873
  $blogname = $this->use_local_options ? get_option( 'blogname' ) : get_site_option( 'site_name' );
874
  $blogname = htmlspecialchars_decode( $blogname, ENT_QUOTES );
875
 
876
- $subject = sprintf( __( "[%s] Too many failed login attempts", 'limit-login-attempts-reloaded' ) , $blogname );
877
 
878
  $message = sprintf( __( "<p>Hello%s,</p>", 'limit-login-attempts-reloaded' ), $admin_name );
879
 
880
- $message .= sprintf( __( "<p>%d failed login attempts (%d lockout(s)) from IP: %s<br>"
881
- , 'limit-login-attempts-reloaded' ), $count, $lockouts, $ip );
882
 
883
- if ( $user != '' ) {
884
- $message .= sprintf( __( "Last user attempted: %s<br>", 'limit-login-attempts-reloaded' ), $user );
885
- }
886
 
887
- $message .= sprintf( __( "IP was blocked for %s</p>", 'limit-login-attempts-reloaded' ), $when );
888
- $message .= __( "<p>This notification was sent automatically via <b>Limit Login Attempts Reloaded Plugin</b>.</p>", 'limit-login-attempts-reloaded' ) . "\r\n\r\n";
889
  $message .= sprintf( __( '<p>Under Attack? Try our <a href="%s" target="_blank">advanced protection</a>. ' .
890
  'Have questions? Visit our <a href="%s" target="_blank">help section</a>.</p>', 'limit-login-attempts-reloaded' ),
891
  'https://www.limitloginattempts.com/features/?from=plugin-lockout-email',
892
  'https://www.limitloginattempts.com/resources/?from=plugin-lockout-email'
893
  );
 
 
894
 
895
  @wp_mail( $admin_email, $subject, $message, array( 'content-type: text/html' ) );
896
  }
480
  * Enqueue js and css
481
  */
482
  public function enqueue() {
483
+
484
+ $plugin_data = get_plugin_data( LLA_PLUGIN_DIR . '/limit-login-attempts-reloaded.php' );
485
+
486
+ wp_enqueue_style( 'lla-main', LLA_PLUGIN_URL . 'assets/css/limit-login-attempts.css', array(), $plugin_data['Version'] );
487
+ wp_enqueue_script( 'lla-main', LLA_PLUGIN_URL . 'assets/js/limit-login-attempts.js', array(), $plugin_data['Version'] );
488
  }
489
 
490
  /**
876
  $blogname = $this->use_local_options ? get_option( 'blogname' ) : get_site_option( 'site_name' );
877
  $blogname = htmlspecialchars_decode( $blogname, ENT_QUOTES );
878
 
879
+ $subject = sprintf( __( "[%s] Failed login attempts", 'limit-login-attempts-reloaded' ) , $blogname );
880
 
881
  $message = sprintf( __( "<p>Hello%s,</p>", 'limit-login-attempts-reloaded' ), $admin_name );
882
 
883
+ $message .= sprintf( __( "<p>%d failed login attempts (%d lockout(s)) from IP <b>%s</b> and it was blocked for %s<br>" , 'limit-login-attempts-reloaded' ), $count, $lockouts, $ip, $when );
 
884
 
885
+ $message .= sprintf( __( "Last user attempted: <b>%s</b></p>", 'limit-login-attempts-reloaded' ), $user );
 
 
886
 
 
 
887
  $message .= sprintf( __( '<p>Under Attack? Try our <a href="%s" target="_blank">advanced protection</a>. ' .
888
  'Have questions? Visit our <a href="%s" target="_blank">help section</a>.</p>', 'limit-login-attempts-reloaded' ),
889
  'https://www.limitloginattempts.com/features/?from=plugin-lockout-email',
890
  'https://www.limitloginattempts.com/resources/?from=plugin-lockout-email'
891
  );
892
+
893
+ $message .= __( "<hr><p>This notification was sent automatically via <b>Limit Login Attempts Reloaded Plugin</b>.</p>", 'limit-login-attempts-reloaded' );
894
 
895
  @wp_mail( $admin_email, $subject, $message, array( 'content-type: text/html' ) );
896
  }
limit-login-attempts-reloaded.php CHANGED
@@ -5,7 +5,7 @@ Description: Limit the rate of login attempts for each IP address.
5
  Author: Limit Login Attempts Reloaded
6
  Author URI: https://limitloginattempts.com/
7
  Text Domain: limit-login-attempts-reloaded
8
- Version: 2.17.0
9
 
10
  Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2020 Limit Login Attempts Reloaded
11
  */
5
  Author: Limit Login Attempts Reloaded
6
  Author URI: https://limitloginattempts.com/
7
  Text Domain: limit-login-attempts-reloaded
8
+ Version: 2.17.1
9
 
10
  Copyright 2008 - 2012 Johan Eenfeldt, 2016 - 2020 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, GDPR, protection
5
  Requires at least: 3.0
6
  Tested up to: 5.5
7
- Stable tag: 2.17.0
8
 
9
  Reloaded version of the original Limit Login Attempts plugin for Login Protection by a team of WordPress developers. GDPR compliant.
10
 
@@ -90,6 +90,10 @@ Please follow this link: <a href="https://www.limitloginattempts.com/resources/"
90
 
91
  == Changelog ==
92
 
 
 
 
 
93
  = 2.17.0 =
94
  * Refactoring.
95
  * Email text and notification updated.
4
  Tags: brute force, login, security, GDPR, protection
5
  Requires at least: 3.0
6
  Tested up to: 5.5
7
+ Stable tag: 2.17.1
8
 
9
  Reloaded version of the original Limit Login Attempts plugin for Login Protection by a team of WordPress developers. GDPR compliant.
10
 
90
 
91
  == Changelog ==
92
 
93
+ = 2.17.1 ==
94
+ * CSS cache issue fixed.
95
+ * Notification text updated.
96
+
97
  = 2.17.0 =
98
  * Refactoring.
99
  * Email text and notification updated.