Version Description
2022-03-16 = * New Feature: Created a new control for customizing the font size of the login form labels. * Enhancement: For multisite, excluded the LoginPress page from YOAST SEO sitemap. * Enhancement: Update log file info.
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Custom Login Page Customizer | LoginPress |
Version | 1.6.0 |
Comparing to | |
See all releases |
Code changes from version 1.5.13 to 1.6.0
- classes/class-loginpress-log.php +14 -2
- custom.php +2 -2
- loginpress.php +36 -7
- readme.txt +7 -2
classes/class-loginpress-log.php
CHANGED
@@ -24,6 +24,9 @@ class LoginPress_Log_Info {
|
|
24 |
$login_order = isset( $loginpress_setting['login_order'] ) ? $loginpress_setting['login_order'] : 'Default';
|
25 |
$customization = isset( $loginpress_config ) ? print_r( $loginpress_config, true ) : 'No customization yet';
|
26 |
$lostpassword_url = isset( $loginpress_setting['lostpassword_url'] ) ? $loginpress_setting['lostpassword_url'] : 'off';
|
|
|
|
|
|
|
27 |
$_loginpassword_url = ( $lostpassword_url == 'on' ) ? 'WordPress Default' : "WooCommerce Custom URL";
|
28 |
$loginpress_uninstall= isset( $loginpress_setting['loginpress_uninstall'] ) ? $loginpress_setting['loginpress_uninstall'] : 'off';
|
29 |
|
@@ -46,9 +49,18 @@ class LoginPress_Log_Info {
|
|
46 |
$html .= 'Expiration: ' . $session_expiration . "\n";
|
47 |
$html .= 'Login Order: ' . ucfirst( $login_order ) . "\n";
|
48 |
if ( class_exists( 'WooCommerce' ) ) {
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
-
$html .= 'Uninstallation: ' . $loginpress_uninstall . "\n";
|
52 |
$html .= 'Total Customized Fields: ' . count( $loginpress_config ) . "\n";
|
53 |
$html .= 'Customization Detail: ' . $customization . "\n";
|
54 |
|
24 |
$login_order = isset( $loginpress_setting['login_order'] ) ? $loginpress_setting['login_order'] : 'Default';
|
25 |
$customization = isset( $loginpress_config ) ? print_r( $loginpress_config, true ) : 'No customization yet';
|
26 |
$lostpassword_url = isset( $loginpress_setting['lostpassword_url'] ) ? $loginpress_setting['lostpassword_url'] : 'off';
|
27 |
+
if ( version_compare( $GLOBALS['wp_version'], '5.9', '>=' ) && ! empty( get_available_languages() ) ) {
|
28 |
+
$lang_switcher = isset( $loginpress_setting['enable_language_switcher'] ) ? $loginpress_setting['enable_language_switcher'] : 'Off';
|
29 |
+
}
|
30 |
$_loginpassword_url = ( $lostpassword_url == 'on' ) ? 'WordPress Default' : "WooCommerce Custom URL";
|
31 |
$loginpress_uninstall= isset( $loginpress_setting['loginpress_uninstall'] ) ? $loginpress_setting['loginpress_uninstall'] : 'off';
|
32 |
|
49 |
$html .= 'Expiration: ' . $session_expiration . "\n";
|
50 |
$html .= 'Login Order: ' . ucfirst( $login_order ) . "\n";
|
51 |
if ( class_exists( 'WooCommerce' ) ) {
|
52 |
+
$html .= 'Lost Password URL: ' . $_loginpassword_url . "\n";
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Add option to remove language switcher option
|
57 |
+
*
|
58 |
+
* @since 1.5.13
|
59 |
+
*/
|
60 |
+
if ( version_compare( $GLOBALS['wp_version'], '5.9', '>=' ) && ! empty( get_available_languages() ) ) {
|
61 |
+
$html .= 'Language Switcher: ' . ucfirst( $lang_switcher ) . "\n";
|
62 |
}
|
63 |
+
$html .= 'Uninstallation: ' . ucfirst( $loginpress_uninstall ) . "\n";
|
64 |
$html .= 'Total Customized Fields: ' . count( $loginpress_config ) . "\n";
|
65 |
$html .= 'Customization Detail: ' . $customization . "\n";
|
66 |
|
custom.php
CHANGED
@@ -898,9 +898,9 @@ class LoginPress_Entities {
|
|
898 |
$this->loginpress_color_setting( $wp_customize, $form_color_control, $form_color_label, 'section_form', 4, 100 );
|
899 |
|
900 |
// customize_form_label.
|
901 |
-
|
902 |
// remember_me_font_size.
|
903 |
-
|
904 |
$this->loginpress_hr_setting( $wp_customize, $close_control, 'section_form', 5, 111 );
|
905 |
|
906 |
// =============================
|
898 |
$this->loginpress_color_setting( $wp_customize, $form_color_control, $form_color_label, 'section_form', 4, 100 );
|
899 |
|
900 |
// customize_form_label.
|
901 |
+
$this->loginpress_rangle_seting( $wp_customize, $form_range_control, $form_range_default, $form_range_label, $form_range_attrs, $form_range_unit, 'section_form', 9, 105 );
|
902 |
// remember_me_font_size.
|
903 |
+
$this->loginpress_rangle_seting( $wp_customize, $form_range_control, $form_range_default, $form_range_label, $form_range_attrs, $form_range_unit, 'section_form', 10, 110 );
|
904 |
$this->loginpress_hr_setting( $wp_customize, $close_control, 'section_form', 5, 111 );
|
905 |
|
906 |
// =============================
|
loginpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login Screen.
|
4 |
* Plugin URI: https://loginpress.pro/?utm_source=loginpress-lite&utm_medium=plugin-inside&utm_campaign=pro-upgrade&utm_content=plugin_uri
|
5 |
* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/?utm_source=loginpress-lite">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
|
6 |
-
* Version: 1.
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/?utm_source=loginpress-lite
|
9 |
* Text Domain: loginpress
|
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public $version = '1.
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
@@ -124,13 +124,42 @@ if ( ! class_exists( 'LoginPress' ) ) :
|
|
124 |
add_action( 'plugin_action_links', array( $this, 'loginpress_action_links' ), 10, 2 );
|
125 |
add_action( 'admin_init', array( $this, 'redirect_optin' ) );
|
126 |
add_filter( 'auth_cookie_expiration', array( $this, '_change_auth_cookie_expiration' ), 10, 3 );
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
}
|
|
|
134 |
|
135 |
/**
|
136 |
* Redirect to Optin page.
|
3 |
* Plugin Name: LoginPress - Customizing the WordPress Login Screen.
|
4 |
* Plugin URI: https://loginpress.pro/?utm_source=loginpress-lite&utm_medium=plugin-inside&utm_campaign=pro-upgrade&utm_content=plugin_uri
|
5 |
* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/?utm_source=loginpress-lite">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms.
|
6 |
+
* Version: 1.6.0
|
7 |
* Author: WPBrigade
|
8 |
* Author URI: https://WPBrigade.com/?utm_source=loginpress-lite
|
9 |
* Text Domain: loginpress
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '1.6.0';
|
26 |
|
27 |
/**
|
28 |
* @var The single instance of the class
|
124 |
add_action( 'plugin_action_links', array( $this, 'loginpress_action_links' ), 10, 2 );
|
125 |
add_action( 'admin_init', array( $this, 'redirect_optin' ) );
|
126 |
add_filter( 'auth_cookie_expiration', array( $this, '_change_auth_cookie_expiration' ), 10, 3 );
|
127 |
+
//add_filter( 'plugins_api', array( $this, 'get_addon_info_' ) , 100, 3 );
|
128 |
+
if ( is_multisite() ) {
|
129 |
+
add_action( 'admin_init', array( $this, 'redirect_loginpress_edit_page' ) );
|
130 |
+
add_action( 'admin_init', array( $this, 'check_loginpress_page' ) );
|
131 |
+
// Makes sure the plugin is defined before trying to use it
|
132 |
+
if ( ! function_exists( 'is_plugin_active_for_network' ) || ! function_exists( 'is_plugin_active' ) ) {
|
133 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
134 |
+
if ( is_plugin_active_for_network( 'wordpress-seo/wp-seo.php' ) ) {
|
135 |
+
/**
|
136 |
+
* This filters the ID of the page/post which you want to remove from the sitemap XML.
|
137 |
+
* @since 1.5.14
|
138 |
+
*
|
139 |
+
* @documentation https://developer.yoast.com/features/xml-sitemaps/api/
|
140 |
+
*/
|
141 |
+
add_filter( 'wpseo_exclude_from_sitemap_by_post_ids', array( $this, 'loginpress_exclude_from_sitemap' ) );
|
142 |
+
}
|
143 |
+
}
|
144 |
+
|
145 |
+
|
146 |
+
}
|
147 |
|
148 |
+
}
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Callback function to exclude LoginPress page from sitemap.
|
152 |
+
*
|
153 |
+
* @return bool Exclude page/s or post/s.
|
154 |
+
* @since 1.5.14
|
155 |
+
*/
|
156 |
+
public function loginpress_exclude_from_sitemap() {
|
157 |
+
|
158 |
+
$page = get_page_by_path( 'loginpress' );
|
159 |
+
if ( is_object( $page ) ) {
|
160 |
+
return array( $page->ID );
|
161 |
}
|
162 |
+
}
|
163 |
|
164 |
/**
|
165 |
* Redirect to Optin page.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.9
|
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com/?utm_source=loginpress-lite&utm_medium=author-url-link
|
6 |
Tags: wp-login, login, login customizer, custom login, wordpress login,
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -221,6 +221,11 @@ Please visit <a target="_blank" rel="friend" href="https://loginpress.pro?utm_so
|
|
221 |
|
222 |
== Changelog ==
|
223 |
|
|
|
|
|
|
|
|
|
|
|
224 |
= 1.5.13 – 2022-03-01 =
|
225 |
* BugFix: Slider control layout in customizer.
|
226 |
* BugFix: Show LoginPress addons to download after activating on agency license.
|
@@ -646,5 +651,5 @@ Please visit <a target="_blank" rel="friend" href="https://loginpress.pro?utm_so
|
|
646 |
|
647 |
== Upgrade Notice ==
|
648 |
|
649 |
-
= 1.
|
650 |
* Important Release, upgrade immediately. Compatible with 5.9
|
4 |
Contributors: WPBrigade, hiddenpearls, AbdulWahab610
|
5 |
Author URI: https://wpbrigade.com/?utm_source=loginpress-lite&utm_medium=author-url-link
|
6 |
Tags: wp-login, login, login customizer, custom login, wordpress login,
|
7 |
+
Stable tag: 1.6.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
221 |
|
222 |
== Changelog ==
|
223 |
|
224 |
+
= 1.6.0 – 2022-03-16 =
|
225 |
+
* New Feature: Created a new control for customizing the font size of the login form labels.
|
226 |
+
* Enhancement: For multisite, excluded the LoginPress page from YOAST SEO sitemap.
|
227 |
+
* Enhancement: Update log file info.
|
228 |
+
|
229 |
= 1.5.13 – 2022-03-01 =
|
230 |
* BugFix: Slider control layout in customizer.
|
231 |
* BugFix: Show LoginPress addons to download after activating on agency license.
|
651 |
|
652 |
== Upgrade Notice ==
|
653 |
|
654 |
+
= 1.6.0 =
|
655 |
* Important Release, upgrade immediately. Compatible with 5.9
|