Custom Login Page Customizer | LoginPress - Version 1.0.21

Version Description

  • 2017-08-25 =
  • Bugfix: Translation bug fixed which changes multilingual backend to english.
Download this release

Release Info

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

Code changes from version 1.0.20 to 1.0.21

Files changed (3) hide show
  1. custom.php +7 -17
  2. loginpress.php +2 -2
  3. readme.txt +6 -3
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' ), 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' ) );
@@ -1235,12 +1235,12 @@ class LoginPress_Entities {
1235
  * * * * * * * * * * * */
1236
  public function login_page_custom_head() {
1237
 
 
1238
  // Include CSS File in heared.
1239
 
1240
  include( LOGINPRESS_DIR_PATH . 'css/style-presets.php' );
1241
  include( LOGINPRESS_DIR_PATH . 'css/style-login.php' );
1242
 
1243
-
1244
  if ( $this->loginpress_key && array_key_exists( 'header_login_menu', $this->loginpress_key ) ) {
1245
 
1246
  // echo '<div class="header-wrapper">';
@@ -1369,24 +1369,14 @@ class LoginPress_Entities {
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
-
1383
- $text = $savedText; //$this->loginpress_key['login_footer_text'];
1384
- }
1385
-
1386
- }
1387
 
1388
- return $text;
 
1389
 
 
1390
  }
1391
 
1392
  /**
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
+
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' ) );
1235
  * * * * * * * * * * * */
1236
  public function login_page_custom_head() {
1237
 
1238
+ add_filter( 'gettext', array( $this, 'change_lostpassword_message' ), 20, 3 );
1239
  // Include CSS File in heared.
1240
 
1241
  include( LOGINPRESS_DIR_PATH . 'css/style-presets.php' );
1242
  include( LOGINPRESS_DIR_PATH . 'css/style-login.php' );
1243
 
 
1244
  if ( $this->loginpress_key && array_key_exists( 'header_login_menu', $this->loginpress_key ) ) {
1245
 
1246
  // echo '<div class="header-wrapper">';
1369
  * @version 1.0.20
1370
  * @return mixed
1371
  * * * * * * * * * * * * * * * * * * */
1372
+ public function change_lostpassword_message ( $translated_text, $text, $domain ) {
 
 
 
 
 
 
 
1373
 
1374
+ if ( array_key_exists( 'login_footer_text', $this->loginpress_key ) && $text == 'Lost your password?' && 'default' == $domain && trim( $this->loginpress_key['login_footer_text'] ) ) {
 
 
 
 
 
1375
 
1376
+ return trim( $this->loginpress_key['login_footer_text'] ); //$this->loginpress_key['login_footer_text'];
1377
+ }
1378
 
1379
+ return $translated_text;
1380
  }
1381
 
1382
  /**
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.20
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.20';
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.21
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.0.21';
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.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,9 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
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
@@ -293,5 +296,5 @@ Please visit <a target="_blank" rel="friend" href="http://www.WPBrigade.com/word
293
 
294
  == Upgrade Notice ==
295
 
296
- = 1.0.20 =
297
- * 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.21
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.21 - 2017-08-25 =
194
+ * Bugfix: Translation bug fixed which changes multilingual backend to english.
195
+
196
  = 1.0.20 - 2017-08-25 =
197
  * Enhancement: Make Placeholder in customizer welcome input fields
198
  * Bugfix: CSS Confliction with Jetpack
296
 
297
  == Upgrade Notice ==
298
 
299
+ = 1.0.21 =
300
+ * Important release, Multiple New Features, BugFixes & enhancements, Please upgrade immediately.