Version Description
- Fix: Fatal Error when logging in
Download this release
Release Info
| Developer | raster02 |
| Plugin | |
| Version | 3.5.2 |
| Comparing to | |
| See all releases | |
Code changes from version 3.5.1 to 3.5.2
- front-end/login.php +12 -10
- index.php +2 -2
- readme.txt +4 -1
front-end/login.php
CHANGED
|
@@ -453,16 +453,18 @@ function wppb_front_end_login( $atts ){
|
|
| 453 |
$form_args['label_username'] = __( 'Username or Email', 'profile-builder' );
|
| 454 |
|
| 455 |
// Check if 2fa is required
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
|
|
|
|
|
|
| 466 |
|
| 467 |
// initialize our form variable
|
| 468 |
$login_form = '';
|
| 453 |
$form_args['label_username'] = __( 'Username or Email', 'profile-builder' );
|
| 454 |
|
| 455 |
// Check if 2fa is required
|
| 456 |
+
if( class_exists( 'WPPB_Two_Factor_Authenticator' ) ){
|
| 457 |
+
$wppb_google_auth = new WPPB_Two_Factor_Authenticator;
|
| 458 |
+
$wppb_two_factor_authentication_settings = get_option( 'wppb_two_factor_authentication_settings', 'not_found' );
|
| 459 |
+
if ( ( isset( $_GET['login_auth'] ) && $_GET['login_auth'] === 'true' ) || (
|
| 460 |
+
( isset($wppb_two_factor_authentication_settings['enabled']) && $wppb_two_factor_authentication_settings['enabled'] === 'yes' ) &&
|
| 461 |
+
( ( isset($wppb_two_factor_authentication_settings['show_code_field']) && (
|
| 462 |
+
$wppb_two_factor_authentication_settings['show_code_field'] === 'everywhere' ||
|
| 463 |
+
$wppb_two_factor_authentication_settings['show_code_field'] === 'frontend' ) ) ||
|
| 464 |
+
$show_2fa_field === 'yes' ) ) ){
|
| 465 |
+
add_action( 'login_form_middle', array( $wppb_google_auth, 'auth_code_field') );
|
| 466 |
+
}
|
| 467 |
+
}
|
| 468 |
|
| 469 |
// initialize our form variable
|
| 470 |
$login_form = '';
|
index.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: https://www.cozmoslabs.com/wordpress-profile-builder/
|
| 5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can choose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
| 6 |
-
Version: 3.5.
|
| 7 |
Author: Cozmoslabs
|
| 8 |
Author URI: https://www.cozmoslabs.com/
|
| 9 |
Text Domain: profile-builder
|
|
@@ -70,7 +70,7 @@ function wppb_free_plugin_init() {
|
|
| 70 |
*
|
| 71 |
*
|
| 72 |
*/
|
| 73 |
-
define('PROFILE_BUILDER_VERSION', '3.5.
|
| 74 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
| 75 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
| 76 |
define('WPPB_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
| 3 |
Plugin Name: Profile Builder
|
| 4 |
Plugin URI: https://www.cozmoslabs.com/wordpress-profile-builder/
|
| 5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can choose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
| 6 |
+
Version: 3.5.2
|
| 7 |
Author: Cozmoslabs
|
| 8 |
Author URI: https://www.cozmoslabs.com/
|
| 9 |
Text Domain: profile-builder
|
| 70 |
*
|
| 71 |
*
|
| 72 |
*/
|
| 73 |
+
define('PROFILE_BUILDER_VERSION', '3.5.2' );
|
| 74 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
| 75 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
| 76 |
define('WPPB_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
|
| 4 |
Tags: user registration, user profile, registration, profile, user registration form, user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form, content restriction, restrict content
|
| 5 |
Requires at least: 3.1
|
| 6 |
Tested up to: 5.8.0
|
| 7 |
-
Stable tag: 3.5.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -176,6 +176,9 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
|
|
| 176 |
15. Edit or Add New User Role
|
| 177 |
|
| 178 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 179 |
= 3.5.1 =
|
| 180 |
* Fix: Compatibility issue with the new admin page header from Elementor
|
| 181 |
* Fix: A potential notice generated by user roles without role names
|
| 4 |
Tags: user registration, user profile, registration, profile, user registration form, user fields, edit profile, user custom fields, front-end login, front-end edit profile, front-end user registration, email confirmation, login form, content restriction, restrict content
|
| 5 |
Requires at least: 3.1
|
| 6 |
Tested up to: 5.8.0
|
| 7 |
+
Stable tag: 3.5.2
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 176 |
15. Edit or Add New User Role
|
| 177 |
|
| 178 |
== Changelog ==
|
| 179 |
+
= 3.5.2 =
|
| 180 |
+
* Fix: Fatal Error when logging in
|
| 181 |
+
|
| 182 |
= 3.5.1 =
|
| 183 |
* Fix: Compatibility issue with the new admin page header from Elementor
|
| 184 |
* Fix: A potential notice generated by user roles without role names
|
