Custom Login Page Customizer | LoginPress - Version 1.4.5

Version Description

2020-07-16 = * Bugfix: Truncate a filter loginpress_prevent_new_user_notification_email.

Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Custom Login Page Customizer | LoginPress
Version 1.4.5
Comparing to
See all releases

Code changes from version 1.4.4 to 1.4.5

classes/class-loginpress-custom-password.php CHANGED
@@ -13,7 +13,7 @@ if ( ! class_exists( 'LoginPresss_Custom_Password' ) ) :
13
  * LoginPress Custom Passwords class
14
  *
15
  * @since 1.0.22
16
- * @version 1.4.0
17
  */
18
  class LoginPresss_Custom_Password {
19
 
@@ -33,26 +33,6 @@ if ( ! class_exists( 'LoginPresss_Custom_Password' ) ) :
33
  add_action( 'register_new_user', array( $this, 'update_default_password_nag' ) );
34
  add_filter( 'wp_new_user_notification_email', array( $this, 'loginpress_new_user_email_notification' ) );
35
 
36
- if ( ! function_exists('wp_new_user_notification') ) :
37
- /**
38
- * Email login credentials to a newly-registered user.
39
- *
40
- * A new user registration notification is also sent to admin email.
41
- */
42
- function wp_new_user_notification( $user_id, $notify = '' ) {
43
-
44
- $prevent_from = apply_filters( 'loginpress_prevent_new_user_notification_email', array() );
45
-
46
- if ( ! in_array( 'prevent_admin', $prevent_from ) ) {
47
- LoginPresss_Custom_Password::loginpress_new_user_reg_notification_to_admin( $user_id );
48
- }
49
-
50
- if ( ! in_array( 'prevent_user', $prevent_from ) ) {
51
- LoginPresss_Custom_Password::loginpress_new_user_reg_notification_to_user( $user_id );
52
- }
53
- }
54
- endif;
55
-
56
  }
57
 
58
  /**
@@ -150,57 +130,6 @@ if ( ! class_exists( 'LoginPresss_Custom_Password' ) ) :
150
  return $email;
151
  }
152
 
153
- public static function loginpress_new_user_reg_notification_to_admin( $user_id ) {
154
-
155
- global $wpdb;
156
- $user = get_userdata( $user_id );
157
-
158
- // The blogname option is escaped with esc_html on the way into the database in sanitize_option
159
- // we want to reverse this for the plain text arena of emails.
160
- $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
161
-
162
- $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n";
163
- $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
164
- $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n";
165
-
166
- wp_mail( get_option( 'admin_email' ), sprintf( __('[%s] New User Registration' ), $blogname ), $message );
167
- }
168
-
169
-
170
- public static function loginpress_new_user_reg_notification_to_user( $user_id ) {
171
-
172
- global $wpdb;
173
- $user = get_userdata( $user_id );
174
-
175
- // The blogname option is escaped with esc_html on the way into the database in sanitize_option
176
- // we want to reverse this for the plain text arena of emails.
177
- $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
178
-
179
- // Generate something random for a password reset key.
180
- $key = wp_generate_password( 20, false );
181
-
182
- /** This action is documented in wp-login.php */
183
- do_action( 'retrieve_password_key', $user->user_login, $key );
184
-
185
- // Now insert the key, hashed, into the DB.
186
- if ( empty( $wp_hasher ) ) {
187
- require_once ABSPATH . WPINC . '/class-phpass.php';
188
- $wp_hasher = new PasswordHash( 8, true );
189
- }
190
- $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
191
- $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user->user_login ) );
192
-
193
- $message = sprintf( __('Username: %s'), $user->user_login ) . "\r\n\r\n";
194
- $message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n";
195
- $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n";
196
-
197
- $message .= wp_login_url() . "\r\n\r\n";
198
-
199
- $message .= __( 'If you have already set your own password, you may disregard this email and use the password you have already set.', 'loginpress' ) . "\r\n";
200
-
201
- wp_mail( $user->user_email, sprintf(__('[%s] Login Details'), $blogname), $message );
202
- }
203
-
204
  } // End Of Class.
205
 
206
  endif;
13
  * LoginPress Custom Passwords class
14
  *
15
  * @since 1.0.22
16
+ * @version 1.4.5
17
  */
18
  class LoginPresss_Custom_Password {
19
 
33
  add_action( 'register_new_user', array( $this, 'update_default_password_nag' ) );
34
  add_filter( 'wp_new_user_notification_email', array( $this, 'loginpress_new_user_email_notification' ) );
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  }
37
 
38
  /**
130
  return $email;
131
  }
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  } // End Of Class.
134
 
135
  endif;
classes/class-loginpress-promotion.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @package LoginPress
6
  * @since 1.1.24
7
- *
8
  */
9
 
10
  if ( ! class_exists( 'LoginPress_Promotion_tabs' ) ) :
@@ -26,43 +26,45 @@ if ( ! class_exists( 'LoginPress_Promotion_tabs' ) ) :
26
 
27
  /**
28
  * [loginpress_login_redirects_tab Setting tab for Login Redirects.]
29
- * @param [array] $loginpress_tabs [ Tabs of free version ]
30
- * @return [array] [ Login Redirects tab ]
 
 
31
  */
32
  public function loginpress_promotion_tab( $loginpress_tabs ) {
33
- $_login_redirects_tab = array(
34
- array(
35
- 'id' => 'loginpress_login_redirects',
36
- 'title' => __( 'Login Redirects', 'loginpress' ),
37
- 'desc' => $this->_tabs_description( 'loginpress-login-redirects' )
38
- ),
39
- array(
40
- 'id' => 'loginpress_social_logins',
41
- 'title' => __( 'Social Login', 'loginpress' ),
42
- 'desc' => $this->_tabs_description( 'loginpress-social-login' )
43
- ),
44
- array(
45
- 'id' => 'loginpress_limit_login_attempts',
46
- 'title' => __( 'Limit Login Attempts', 'loginpress' ),
47
- 'desc' => $this->_tabs_description( 'loginpress-limit-login-attempts' )
48
- ),
49
- array(
50
- 'id' => 'loginpress_autologin',
51
- 'title' => __( 'Auto Login', 'loginpress' ),
52
- 'desc' => $this->_tabs_description( 'loginpress-auto-login' )
53
- ),
54
- array(
55
- 'id' => 'loginpress_hidelogin',
56
- 'title' => __( 'Hide Login', 'loginpress' ),
57
- 'desc' => $this->_tabs_description( 'loginpress-hide-login' )
58
- ),
59
  array(
60
  'id' => 'loginpress_premium',
61
  'title' => __( 'Upgrade to Pro for More Features', 'loginpress' )
62
  )
63
  );
64
- $login_redirects_tab = array_merge( $loginpress_tabs, $_login_redirects_tab );
65
- return $login_redirects_tab;
66
  }
67
 
68
  /**
4
  *
5
  * @package LoginPress
6
  * @since 1.1.24
7
+ * @version 1.4.5
8
  */
9
 
10
  if ( ! class_exists( 'LoginPress_Promotion_tabs' ) ) :
26
 
27
  /**
28
  * [loginpress_login_redirects_tab Setting tab for Login Redirects.]
29
+ * @param array $loginpress_tabs [ Tabs of free version ]
30
+ * @return array $loginpress_promotion_tab [ Promotion tabs ]
31
+ * @since 1.1.24
32
+ * @version 1.4.5
33
  */
34
  public function loginpress_promotion_tab( $loginpress_tabs ) {
35
+ $_loginpress_promotion_tab = array(
36
+ // array(
37
+ // 'id' => 'loginpress_login_redirects',
38
+ // 'title' => __( 'Login Redirects', 'loginpress' ),
39
+ // 'desc' => $this->_tabs_description( 'loginpress-login-redirects' )
40
+ // ),
41
+ // array(
42
+ // 'id' => 'loginpress_social_logins',
43
+ // 'title' => __( 'Social Login', 'loginpress' ),
44
+ // 'desc' => $this->_tabs_description( 'loginpress-social-login' )
45
+ // ),
46
+ // array(
47
+ // 'id' => 'loginpress_limit_login_attempts',
48
+ // 'title' => __( 'Limit Login Attempts', 'loginpress' ),
49
+ // 'desc' => $this->_tabs_description( 'loginpress-limit-login-attempts' )
50
+ // ),
51
+ // array(
52
+ // 'id' => 'loginpress_autologin',
53
+ // 'title' => __( 'Auto Login', 'loginpress' ),
54
+ // 'desc' => $this->_tabs_description( 'loginpress-auto-login' )
55
+ // ),
56
+ // array(
57
+ // 'id' => 'loginpress_hidelogin',
58
+ // 'title' => __( 'Hide Login', 'loginpress' ),
59
+ // 'desc' => $this->_tabs_description( 'loginpress-hide-login' )
60
+ // ),
61
  array(
62
  'id' => 'loginpress_premium',
63
  'title' => __( 'Upgrade to Pro for More Features', 'loginpress' )
64
  )
65
  );
66
+ $loginpress_promotion_tab = array_merge( $loginpress_tabs, $_loginpress_promotion_tab );
67
+ return $loginpress_promotion_tab;
68
  }
69
 
70
  /**
classes/class-loginpress-setup.php CHANGED
@@ -123,9 +123,12 @@ class LoginPress_Settings {
123
  ),
124
  );
125
 
 
 
 
 
 
126
  if ( ! has_action( 'loginpress_pro_add_template' ) ) {
127
-
128
- // Add Add-Ons Promotion tabs @since 1.1.22 @version 1.1.24
129
  include LOGINPRESS_DIR_PATH . 'classes/class-loginpress-promotion.php';
130
  }
131
 
123
  ),
124
  );
125
 
126
+ /**
127
+ * Add Promotion tabs in settings page.
128
+ * @since 1.1.22
129
+ * @version 1.1.24
130
+ */
131
  if ( ! has_action( 'loginpress_pro_add_template' ) ) {
 
 
132
  include LOGINPRESS_DIR_PATH . 'classes/class-loginpress-promotion.php';
133
  }
134
 
css/style-login.php CHANGED
@@ -610,6 +610,11 @@ box-shadow: <?php echo loginpress_box_shadow( $loginpress_textfield_shadow, $log
610
  <?php endif; ?>
611
  }
612
 
 
 
 
 
 
613
 
614
  .login .custom-message {
615
 
@@ -986,6 +991,13 @@ input[type=checkbox]:checked::before{
986
  transition: 0.6s;
987
  } */
988
  /* ! LoginPress input field since 1.1.20 */
 
 
 
 
 
 
 
989
  @media screen and (max-width: 767px) {
990
  .login h1 a {
991
  max-width: 100%;
@@ -1014,6 +1026,24 @@ input[type=checkbox]:checked::before{
1014
  .loginpress-show-love{
1015
  display: none !important;
1016
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1017
  }
1018
  @media screen and (max-height: 700px) {
1019
  .loginpress-show-love{
610
  <?php endif; ?>
611
  }
612
 
613
+ #wfls-prompt-overlay {
614
+ <?php if ( true != $loginpress_form_display_bg && ! empty( $loginpress_form_background_clr ) ) : ?>
615
+ background-color: <?php echo $loginpress_form_background_clr; ?>;
616
+ <?php endif; ?>
617
+ }
618
 
619
  .login .custom-message {
620
 
991
  transition: 0.6s;
992
  } */
993
  /* ! LoginPress input field since 1.1.20 */
994
+ @media screen and (max-width: 1239px) and (min-width: 768px){
995
+ body.login #loginpress_video-background-wrapper{
996
+ <?php if( $loginpress_theme_tem == 'default10' ) : ?>
997
+ width: calc(58vw - 90px);
998
+ <?php endif; ?>
999
+ }
1000
+ }
1001
  @media screen and (max-width: 767px) {
1002
  .login h1 a {
1003
  max-width: 100%;
1026
  .loginpress-show-love{
1027
  display: none !important;
1028
  }
1029
+ body.login #loginpress_video-background-wrapper{
1030
+ <?php if( $loginpress_theme_tem == 'default6' ) : ?>
1031
+ z-index: -1;
1032
+ width: 100%;
1033
+ <?php endif; ?>
1034
+ <?php if( $loginpress_theme_tem == 'default10' ) : ?>
1035
+ z-index: -1;
1036
+ width: 100%;
1037
+ <?php endif; ?>
1038
+ <?php if( $loginpress_theme_tem == 'default17' ) : ?>
1039
+ z-index: 0;
1040
+ width: 100%;
1041
+ <?php endif; ?>
1042
+ <?php if( $loginpress_theme_tem == 'default8' ) : ?>
1043
+ z-index: 1;
1044
+ width: 100%;
1045
+ <?php endif; ?>
1046
+ }
1047
  }
1048
  @media screen and (max-height: 700px) {
1049
  .loginpress-show-love{
loginpress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
5
  * Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
6
- * Version: 1.4.4
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
22
  /**
23
  * @var string
24
  */
25
- public $version = '1.4.4';
26
 
27
  /**
28
  * @var The single instance of the class
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
5
  * Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
6
+ * Version: 1.4.5
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.4.5';
26
 
27
  /**
28
  * @var The single instance of the class
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.4
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, login, login customizer, custom login, wordpress login,
7
- Stable tag: 1.4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -216,6 +216,9 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
216
  23. Custom Login page (Company theme) Example #23 with Captcha [Pro feature](https://WPBrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=screenshots&utm_campaign=pro-upgrade)
217
 
218
  == Changelog ==
 
 
 
219
  = 1.4.4 – 2020-05-19 =
220
  * Bugfix: Managing Free Add-On, Login Logout Menu from Add-Ons page.
221
  * Enhancement: Added a filter `loginpress_prevent_new_user_notification_email` to prevent sending the Login detail email during register on site.
@@ -563,5 +566,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
563
 
564
  == Upgrade Notice ==
565
 
566
- = 1.4.4 =
567
  * Important Release, upgrade immediately.
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, login, login customizer, custom login, wordpress login,
7
+ Stable tag: 1.4.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
216
  23. Custom Login page (Company theme) Example #23 with Captcha [Pro feature](https://WPBrigade.com/wordpress/plugins/loginpress-pro/?utm_source=loginpress-lite&utm_medium=screenshots&utm_campaign=pro-upgrade)
217
 
218
  == Changelog ==
219
+ = 1.4.5 – 2020-07-16 =
220
+ * Bugfix: Truncate a filter `loginpress_prevent_new_user_notification_email`.
221
+
222
  = 1.4.4 – 2020-05-19 =
223
  * Bugfix: Managing Free Add-On, Login Logout Menu from Add-Ons page.
224
  * Enhancement: Added a filter `loginpress_prevent_new_user_notification_email` to prevent sending the Login detail email during register on site.
566
 
567
  == Upgrade Notice ==
568
 
569
+ = 1.4.5 =
570
  * Important Release, upgrade immediately.