Version Description
- 2017-08-25 =
- Enhancement: Make Placeholder in customizer welcome input fields
- Bugfix: CSS Confliction with Jetpack
- Bugfix: optin form style issue on RTL WP
- Bugfix: welcome message support issue
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.0.20 |
Comparing to | |
See all releases |
Code changes from version 1.0.19 to 1.0.20
- css/themes/default-1.php +0 -4
- custom.php +15 -12
- include/loginpress-optin-form.php +4 -4
- loginpress.php +2 -2
- readme.txt +11 -5
css/themes/default-1.php
CHANGED
@@ -28,10 +28,6 @@ function first_presets() {
|
|
28 |
.header-wrapper{
|
29 |
display: table-row;
|
30 |
}
|
31 |
-
.wp-core-ui .button-primary {
|
32 |
-
color : red;
|
33 |
-
background-color : red;
|
34 |
-
}
|
35 |
#login{
|
36 |
margin-top: 2%;
|
37 |
background: #fff;
|
28 |
.header-wrapper{
|
29 |
display: table-row;
|
30 |
}
|
|
|
|
|
|
|
|
|
31 |
#login{
|
32 |
margin-top: 2%;
|
33 |
background: #fff;
|
custom.php
CHANGED
@@ -30,7 +30,7 @@ class LoginPress_Entities {
|
|
30 |
add_filter( 'login_headerurl', array( $this, 'login_page_logo_url' ) );
|
31 |
add_filter( 'login_headertitle', array( $this, 'login_page_logo_title' ) );
|
32 |
add_filter( 'login_errors', array( $this, 'login_error_messages' ) );
|
33 |
-
add_filter( 'gettext', array( $this, 'change_lostpassword_message' ) );
|
34 |
add_filter( 'login_message', array( $this, 'change_welcome_message' ) );
|
35 |
add_action( 'customize_register', array( $this, 'customize_login_panel' ) );
|
36 |
add_action( 'login_footer', array( $this, 'login_page_custom_footer' ) );
|
@@ -643,10 +643,10 @@ class LoginPress_Entities {
|
|
643 |
) );
|
644 |
|
645 |
$welcome_control = array( 'lostpwd_welcome_message', 'welcome_message', 'register_welcome_message', 'logout_message', 'message_background_border' );
|
646 |
-
$welcome_default = array( 'Forgot password?', 'Welcome', 'Register
|
647 |
$welcome_label = array(
|
648 |
__( 'Welcome Message on Lost Password:', 'loginpress' ),
|
649 |
-
__( 'Welcome Message on
|
650 |
__( 'Welcome Message on Registration:', 'loginpress' ),
|
651 |
__( 'Logout Message:', 'loginpress' ),
|
652 |
__( 'Message Field Border: ( Example: 1px solid #00a0d2; )', 'loginpress' ),
|
@@ -656,7 +656,6 @@ class LoginPress_Entities {
|
|
656 |
while ( $welcome < 5 ) :
|
657 |
|
658 |
$wp_customize->add_setting( "loginpress_customization[{$welcome_control[$welcome]}]", array(
|
659 |
-
'default' => $welcome_default[ $welcome ],
|
660 |
'type' => 'option',
|
661 |
'capability' => 'manage_options',
|
662 |
'transport' => 'postMessage'
|
@@ -667,6 +666,9 @@ class LoginPress_Entities {
|
|
667 |
'section' => 'section_welcome',
|
668 |
'priority' => 5,
|
669 |
'settings' => "loginpress_customization[{$welcome_control[$welcome]}]",
|
|
|
|
|
|
|
670 |
) );
|
671 |
|
672 |
$welcome++;
|
@@ -1364,16 +1366,17 @@ class LoginPress_Entities {
|
|
1364 |
*
|
1365 |
* @param $text
|
1366 |
* @since 1.0.0
|
|
|
1367 |
* @return mixed
|
1368 |
* * * * * * * * * * * * * * * * * * */
|
1369 |
-
public function change_lostpassword_message ( $text ) {
|
1370 |
$savedText = '';
|
1371 |
if ( $this->loginpress_key && array_key_exists( 'login_footer_text', $this->loginpress_key ) ) {
|
1372 |
|
1373 |
-
$savedText = $this->loginpress_key['login_footer_text'];
|
1374 |
}
|
1375 |
|
1376 |
-
if ( $text == 'Lost your password?'
|
1377 |
|
1378 |
if ( $this->loginpress_key && array_key_exists( 'login_footer_text', $this->loginpress_key ) ) {
|
1379 |
|
@@ -1398,7 +1401,7 @@ class LoginPress_Entities {
|
|
1398 |
if ( $this->loginpress_key ) {
|
1399 |
|
1400 |
//Check, User Logedout.
|
1401 |
-
if ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] ) {
|
1402 |
|
1403 |
if ( array_key_exists( 'logout_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['logout_message'] ) ) {
|
1404 |
|
@@ -1407,7 +1410,7 @@ class LoginPress_Entities {
|
|
1407 |
}
|
1408 |
|
1409 |
//Logged In messages.
|
1410 |
-
else if ( strpos( $message, "Please enter your username or email address. You will receive a link to create a new password via email." ) == true ) {
|
1411 |
|
1412 |
if ( array_key_exists( 'lostpwd_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['lostpwd_welcome_message'] ) ) {
|
1413 |
|
@@ -1415,7 +1418,7 @@ class LoginPress_Entities {
|
|
1415 |
}
|
1416 |
}
|
1417 |
|
1418 |
-
else if( strpos( $message, "Register For This Site" ) == true ) {
|
1419 |
|
1420 |
if ( array_key_exists( 'register_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['register_welcome_message'] ) ) {
|
1421 |
|
@@ -1424,7 +1427,7 @@ class LoginPress_Entities {
|
|
1424 |
}
|
1425 |
|
1426 |
// @since 1.0.18
|
1427 |
-
// else if ( strpos( $message, "Enter your new password below." ) == true ) {
|
1428 |
//
|
1429 |
// if ( array_key_exists( 'reset_hint_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['reset_hint_message'] ) ) {
|
1430 |
//
|
@@ -1433,7 +1436,7 @@ class LoginPress_Entities {
|
|
1433 |
// }
|
1434 |
|
1435 |
// @since 1.0.18
|
1436 |
-
else if ( strpos( $message, "Your password has been reset." ) == true ) {
|
1437 |
|
1438 |
// if ( array_key_exists( 'after_reset_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['after_reset_message'] ) ) {
|
1439 |
|
30 |
add_filter( 'login_headerurl', array( $this, 'login_page_logo_url' ) );
|
31 |
add_filter( 'login_headertitle', array( $this, 'login_page_logo_title' ) );
|
32 |
add_filter( 'login_errors', array( $this, 'login_error_messages' ) );
|
33 |
+
add_filter( 'gettext', array( $this, 'change_lostpassword_message' ), 20, 3 );
|
34 |
add_filter( 'login_message', array( $this, 'change_welcome_message' ) );
|
35 |
add_action( 'customize_register', array( $this, 'customize_login_panel' ) );
|
36 |
add_action( 'login_footer', array( $this, 'login_page_custom_footer' ) );
|
643 |
) );
|
644 |
|
645 |
$welcome_control = array( 'lostpwd_welcome_message', 'welcome_message', 'register_welcome_message', 'logout_message', 'message_background_border' );
|
646 |
+
$welcome_default = array( 'Forgot password?', 'Welcome', 'Register For This Site', 'Logout', '' );
|
647 |
$welcome_label = array(
|
648 |
__( 'Welcome Message on Lost Password:', 'loginpress' ),
|
649 |
+
__( 'Welcome Message on Login Page:', 'loginpress' ),
|
650 |
__( 'Welcome Message on Registration:', 'loginpress' ),
|
651 |
__( 'Logout Message:', 'loginpress' ),
|
652 |
__( 'Message Field Border: ( Example: 1px solid #00a0d2; )', 'loginpress' ),
|
656 |
while ( $welcome < 5 ) :
|
657 |
|
658 |
$wp_customize->add_setting( "loginpress_customization[{$welcome_control[$welcome]}]", array(
|
|
|
659 |
'type' => 'option',
|
660 |
'capability' => 'manage_options',
|
661 |
'transport' => 'postMessage'
|
666 |
'section' => 'section_welcome',
|
667 |
'priority' => 5,
|
668 |
'settings' => "loginpress_customization[{$welcome_control[$welcome]}]",
|
669 |
+
'input_attrs' => array(
|
670 |
+
'placeholder' => $welcome_default[ $welcome ],
|
671 |
+
)
|
672 |
) );
|
673 |
|
674 |
$welcome++;
|
1366 |
*
|
1367 |
* @param $text
|
1368 |
* @since 1.0.0
|
1369 |
+
* @version 1.0.20
|
1370 |
* @return mixed
|
1371 |
* * * * * * * * * * * * * * * * * * */
|
1372 |
+
public function change_lostpassword_message ( $translated_text, $text, $domain ) {
|
1373 |
$savedText = '';
|
1374 |
if ( $this->loginpress_key && array_key_exists( 'login_footer_text', $this->loginpress_key ) ) {
|
1375 |
|
1376 |
+
$savedText = trim( $this->loginpress_key['login_footer_text'] );
|
1377 |
}
|
1378 |
|
1379 |
+
if ( $text == 'Lost your password?' && '' != $savedText ) {
|
1380 |
|
1381 |
if ( $this->loginpress_key && array_key_exists( 'login_footer_text', $this->loginpress_key ) ) {
|
1382 |
|
1401 |
if ( $this->loginpress_key ) {
|
1402 |
|
1403 |
//Check, User Logedout.
|
1404 |
+
if ( isset( $_GET['loggedout'] ) && TRUE == $_GET['loggedout'] ) {
|
1405 |
|
1406 |
if ( array_key_exists( 'logout_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['logout_message'] ) ) {
|
1407 |
|
1410 |
}
|
1411 |
|
1412 |
//Logged In messages.
|
1413 |
+
else if ( strpos( $message, __( "Please enter your username or email address. You will receive a link to create a new password via email." ) ) == true ) {
|
1414 |
|
1415 |
if ( array_key_exists( 'lostpwd_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['lostpwd_welcome_message'] ) ) {
|
1416 |
|
1418 |
}
|
1419 |
}
|
1420 |
|
1421 |
+
else if( strpos( $message, __( "Register For This Site" ) ) == true ) {
|
1422 |
|
1423 |
if ( array_key_exists( 'register_welcome_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['register_welcome_message'] ) ) {
|
1424 |
|
1427 |
}
|
1428 |
|
1429 |
// @since 1.0.18
|
1430 |
+
// else if ( strpos( $message, __( "Enter your new password below." ) ) == true ) {
|
1431 |
//
|
1432 |
// if ( array_key_exists( 'reset_hint_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['reset_hint_message'] ) ) {
|
1433 |
//
|
1436 |
// }
|
1437 |
|
1438 |
// @since 1.0.18
|
1439 |
+
else if ( strpos( $message, __( "Your password has been reset." ) ) == true ) {
|
1440 |
|
1441 |
// if ( array_key_exists( 'after_reset_message', $this->loginpress_key ) && ! empty( $this->loginpress_key['after_reset_message'] ) ) {
|
1442 |
|
include/loginpress-optin-form.php
CHANGED
@@ -193,21 +193,21 @@ h5{
|
|
193 |
margin-top: 50px;
|
194 |
}
|
195 |
.step-wrapper{
|
196 |
-
width:
|
197 |
transition: all 0.3s ease-in-out;
|
198 |
-webkit-transition: all 0.3s ease-in-out;
|
199 |
}
|
200 |
-
|
201 |
-webkit-transform: translateX(-50%);
|
202 |
transform: translateX(-50%);
|
203 |
-
}
|
204 |
.step-wrapper:after{
|
205 |
content: '';
|
206 |
display: table;
|
207 |
clear: both;
|
208 |
}
|
209 |
.step{
|
210 |
-
width:
|
211 |
float: left;
|
212 |
padding: 0 20px;
|
213 |
box-sizing: border-box;
|
193 |
margin-top: 50px;
|
194 |
}
|
195 |
.step-wrapper{
|
196 |
+
width: 100%;
|
197 |
transition: all 0.3s ease-in-out;
|
198 |
-webkit-transition: all 0.3s ease-in-out;
|
199 |
}
|
200 |
+
/*.step-wrapper.slide{
|
201 |
-webkit-transform: translateX(-50%);
|
202 |
transform: translateX(-50%);
|
203 |
+
}*/
|
204 |
.step-wrapper:after{
|
205 |
content: '';
|
206 |
display: table;
|
207 |
clear: both;
|
208 |
}
|
209 |
.step{
|
210 |
+
width: 100%;
|
211 |
float: left;
|
212 |
padding: 0 20px;
|
213 |
box-sizing: border-box;
|
loginpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login
|
4 |
* Plugin URI: http://www.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.0.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: http://www.WPBrigade.com/
|
9 |
* Text Domain: loginpress
|
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public $version = '1.0.
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login
|
4 |
* Plugin URI: http://www.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.0.20
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: http://www.WPBrigade.com/
|
9 |
* Text Domain: loginpress
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.0.20';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 4.8
|
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -190,6 +190,12 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
|
|
190 |
|
191 |
== Changelog ==
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
= 1.0.19 - 2017-08-22 =
|
194 |
* Enhancement: (New Feature) User Login with Email only.
|
195 |
* Enhancement: (New Feature) Introduced Help Page with System Info.
|
@@ -213,12 +219,12 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
|
|
213 |
* Enhancement: Pro features promo introducing in Free version.
|
214 |
|
215 |
= 1.0.16 - 2017-06-09 =
|
216 |
-
* Bugfix: Login errors confliction with
|
217 |
* Enhancement: Set default login errors messages.
|
218 |
* Enhancement: Add "username exists" and "email exists" error message option in customizer.
|
219 |
* Enhancement: Code improvement.
|
220 |
* Introducing Pro features:
|
221 |
-
* Bugfix: reCaptcha confliction with
|
222 |
* Enhancement: Add "Password hint" message option in customizer.
|
223 |
* Enhancement: Code improvement.
|
224 |
|
@@ -228,7 +234,7 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
|
|
228 |
* Enhancement: Code cleanup
|
229 |
|
230 |
= 1.0.14 - 2017-04-29 =
|
231 |
-
* Bugfix: Backgrounds and Colors for pre-defined
|
232 |
* Enhancement: Code cleanup
|
233 |
|
234 |
= 1.0.13 - 2017-04-14 =
|
@@ -287,5 +293,5 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
|
|
287 |
|
288 |
== Upgrade Notice ==
|
289 |
|
290 |
-
= 1.0.
|
291 |
* Important release, Multiple New Features & enhancements, Please upgrade immediately.
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com
|
6 |
Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress
|
7 |
+
Stable tag: 1.0.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
190 |
|
191 |
== Changelog ==
|
192 |
|
193 |
+
= 1.0.20 - 2017-08-25 =
|
194 |
+
* Enhancement: Make Placeholder in customizer welcome input fields
|
195 |
+
* Bugfix: CSS Confliction with Jetpack
|
196 |
+
* Bugfix: optin form style issue on RTL WP
|
197 |
+
* Bugfix: welcome message support issue
|
198 |
+
|
199 |
= 1.0.19 - 2017-08-22 =
|
200 |
* Enhancement: (New Feature) User Login with Email only.
|
201 |
* Enhancement: (New Feature) Introduced Help Page with System Info.
|
219 |
* Enhancement: Pro features promo introducing in Free version.
|
220 |
|
221 |
= 1.0.16 - 2017-06-09 =
|
222 |
+
* Bugfix: Login errors confliction with WooCommerce login form.
|
223 |
* Enhancement: Set default login errors messages.
|
224 |
* Enhancement: Add "username exists" and "email exists" error message option in customizer.
|
225 |
* Enhancement: Code improvement.
|
226 |
* Introducing Pro features:
|
227 |
+
* Bugfix: reCaptcha confliction with WooCommerce login form.
|
228 |
* Enhancement: Add "Password hint" message option in customizer.
|
229 |
* Enhancement: Code improvement.
|
230 |
|
234 |
* Enhancement: Code cleanup
|
235 |
|
236 |
= 1.0.14 - 2017-04-29 =
|
237 |
+
* Bugfix: Backgrounds and Colors for pre-defined templates.
|
238 |
* Enhancement: Code cleanup
|
239 |
|
240 |
= 1.0.13 - 2017-04-14 =
|
293 |
|
294 |
== Upgrade Notice ==
|
295 |
|
296 |
+
= 1.0.20 =
|
297 |
* Important release, Multiple New Features & enhancements, Please upgrade immediately.
|