Version Description
2020-05-19 =
* Bugfix: Managing Free Add-On, Login Logout Menu from Add-Ons page.
* Enhancement: Added a filter loginpress_prevent_new_user_notification_email
to prevent sending the Login detail email during register on site.
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.3 to 1.4.4
- classes/class-loginpress-addons.php +2 -1
- classes/class-loginpress-custom-password.php +71 -0
- loginpress.php +9 -7
- readme.txt +7 -3
classes/class-loginpress-addons.php
CHANGED
@@ -175,7 +175,8 @@ if ( ! class_exists( 'LoginPress_Addons' ) ) :
|
|
175 |
<!-- <p> -->
|
176 |
<!-- <a target="_self" href="<?php // echo $link; ?>" class="button-primary">INSTALL</a> -->
|
177 |
<!-- </p> -->
|
178 |
-
|
|
|
179 |
<input id="<?php echo $slugid ?>" type="checkbox" class="loginpress-radio loginpress-radio-ios loginpress-install-pro-addon" value="<?php echo $slugid ?>">
|
180 |
<label for="<?php echo $slugid ?>" class="loginpress-radio-btn"></label>
|
181 |
<?php
|
175 |
<!-- <p> -->
|
176 |
<!-- <a target="_self" href="<?php // echo $link; ?>" class="button-primary">INSTALL</a> -->
|
177 |
<!-- </p> -->
|
178 |
+
<input name="loginpress_pro_addon_nonce" type="hidden" value="<?php echo wp_create_nonce( 'install-plugin_' . $slug ); ?>">
|
179 |
+
<input name="loginpress_pro_addon_slug" type="hidden" value="<?php echo $slug; ?>">
|
180 |
<input id="<?php echo $slugid ?>" type="checkbox" class="loginpress-radio loginpress-radio-ios loginpress-install-pro-addon" value="<?php echo $slugid ?>">
|
181 |
<label for="<?php echo $slugid ?>" class="loginpress-radio-btn"></label>
|
182 |
<?php
|
classes/class-loginpress-custom-password.php
CHANGED
@@ -33,6 +33,26 @@ 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 |
}
|
37 |
|
38 |
/**
|
@@ -130,6 +150,57 @@ if ( ! class_exists( 'LoginPresss_Custom_Password' ) ) :
|
|
130 |
return $email;
|
131 |
}
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
} // End Of Class.
|
134 |
|
135 |
endif;
|
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 |
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;
|
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.
|
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.
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
@@ -104,9 +104,10 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
104 |
$enable_reg_pass_field = isset( $loginpress_setting['enable_reg_pass_field'] ) ? $loginpress_setting['enable_reg_pass_field'] : 'off';
|
105 |
if ( 'off' != $enable_reg_pass_field ) {
|
106 |
include_once( LOGINPRESS_DIR_PATH . 'classes/class-loginpress-custom-password.php' );
|
107 |
-
|
108 |
-
|
109 |
-
|
|
|
110 |
|
111 |
/**
|
112 |
* Hook into actions and filters
|
@@ -129,7 +130,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
129 |
add_action( 'admin_init', array( $this, 'check_loginpress_page' ) );
|
130 |
}
|
131 |
|
132 |
-
|
133 |
|
134 |
/**
|
135 |
* Redirect to Optin page.
|
@@ -516,6 +517,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
516 |
return $page;
|
517 |
}
|
518 |
|
|
|
519 |
/**
|
520 |
* Add a link to the settings page to the plugins list
|
521 |
*
|
@@ -614,4 +616,4 @@ if (!class_exists('TAV_Remote_Notification_Client')) {
|
|
614 |
$notification = new TAV_Remote_Notification_Client( 125, '16765c0902705d62', 'https://wpbrigade.com?post_type=notification' );
|
615 |
|
616 |
register_activation_hook( __FILE__, array( 'LoginPress', 'plugin_activation' ) );
|
617 |
-
register_uninstall_hook( __FILE__, array( 'LoginPress', 'plugin_uninstallation' ) );
|
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 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.4.4';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
104 |
$enable_reg_pass_field = isset( $loginpress_setting['enable_reg_pass_field'] ) ? $loginpress_setting['enable_reg_pass_field'] : 'off';
|
105 |
if ( 'off' != $enable_reg_pass_field ) {
|
106 |
include_once( LOGINPRESS_DIR_PATH . 'classes/class-loginpress-custom-password.php' );
|
107 |
+
new LoginPresss_Custom_Password();
|
108 |
+
}
|
109 |
+
|
110 |
+
}
|
111 |
|
112 |
/**
|
113 |
* Hook into actions and filters
|
130 |
add_action( 'admin_init', array( $this, 'check_loginpress_page' ) );
|
131 |
}
|
132 |
|
133 |
+
}
|
134 |
|
135 |
/**
|
136 |
* Redirect to Optin page.
|
517 |
return $page;
|
518 |
}
|
519 |
|
520 |
+
|
521 |
/**
|
522 |
* Add a link to the settings page to the plugins list
|
523 |
*
|
616 |
$notification = new TAV_Remote_Notification_Client( 125, '16765c0902705d62', 'https://wpbrigade.com?post_type=notification' );
|
617 |
|
618 |
register_activation_hook( __FILE__, array( 'LoginPress', 'plugin_activation' ) );
|
619 |
+
register_uninstall_hook( __FILE__, array( 'LoginPress', 'plugin_uninstallation' ) );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Custom Login Page Customizer | LoginPress ===
|
2 |
Requires at least: 4.0
|
3 |
-
Tested up to: 5.
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -216,6 +216,10 @@ 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.3 – 2020-02-27 =
|
220 |
* New Feature: Created a new control for button text color on hover.
|
221 |
* Bugfix: Video background works on iOS devices as well.
|
@@ -559,5 +563,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
|
|
559 |
|
560 |
== Upgrade Notice ==
|
561 |
|
562 |
-
= 1.4.
|
563 |
* Important Release, upgrade immediately.
|
1 |
=== Custom Login Page Customizer | LoginPress ===
|
2 |
Requires at least: 4.0
|
3 |
+
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 |
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.
|
222 |
+
|
223 |
= 1.4.3 – 2020-02-27 =
|
224 |
* New Feature: Created a new control for button text color on hover.
|
225 |
* Bugfix: Video background works on iOS devices as well.
|
563 |
|
564 |
== Upgrade Notice ==
|
565 |
|
566 |
+
= 1.4.4 =
|
567 |
* Important Release, upgrade immediately.
|