Version Description
- Fixed issue regarding password update not working in certain cases
- Changed label for when login with username is selected
- Fixed small css issue regarding checkboxes labels
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | User registration & user profile – Profile Builder |
Version | 2.3.5 |
Comparing to | |
See all releases |
Code changes from version 2.3.4 to 2.3.5
- assets/css/style-front-end.css +1 -0
- front-end/edit-profile.php +23 -11
- front-end/login.php +3 -0
- index.php +2 -2
- readme.txt +7 -2
assets/css/style-front-end.css
CHANGED
@@ -209,6 +209,7 @@ input#send_credentials_via_email{
|
|
209 |
float:none;
|
210 |
min-width:0;
|
211 |
padding-left:5px;
|
|
|
212 |
}
|
213 |
|
214 |
.wppb-checkbox-terms-and-conditions input,
|
209 |
float:none;
|
210 |
min-width:0;
|
211 |
padding-left:5px;
|
212 |
+
width:auto;
|
213 |
}
|
214 |
|
215 |
.wppb-checkbox-terms-and-conditions input,
|
front-end/edit-profile.php
CHANGED
@@ -18,7 +18,7 @@ function wppb_autologin_after_password_changed(){
|
|
18 |
require_once( WPPB_PLUGIN_DIR.'/front-end/extra-fields/extra-fields.php' );
|
19 |
|
20 |
/* we get the form_name through $_POST so we can apply correctly the filter so we generate the correct fields in the current form */
|
21 |
-
$form_fields = apply_filters( 'wppb_change_form_fields', get_option( 'wppb_manage_fields' ), array( 'form_type'=> 'edit_profile', 'form_fields' => array(), 'form_name' => $_POST['form_name'], 'role' => '' ) );
|
22 |
if( !empty( $form_fields ) ){
|
23 |
|
24 |
/* check for errors in the form through the filters */
|
@@ -31,18 +31,30 @@ function wppb_autologin_after_password_changed(){
|
|
31 |
|
32 |
/* if we have no errors change the password */
|
33 |
if( empty( $output_field_errors ) ) {
|
|
|
34 |
$user_id = get_current_user_id();
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
-
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
}
|
48 |
}
|
18 |
require_once( WPPB_PLUGIN_DIR.'/front-end/extra-fields/extra-fields.php' );
|
19 |
|
20 |
/* we get the form_name through $_POST so we can apply correctly the filter so we generate the correct fields in the current form */
|
21 |
+
$form_fields = apply_filters( 'wppb_change_form_fields', get_option( 'wppb_manage_fields' ), array( 'form_type'=> 'edit_profile', 'form_fields' => array(), 'form_name' => $_POST['form_name'], 'role' => '', 'ID' => Profile_Builder_Form_Creator::wppb_get_form_id_from_form_name( $_POST['form_name'], 'edit_profile' ) ) );
|
22 |
if( !empty( $form_fields ) ){
|
23 |
|
24 |
/* check for errors in the form through the filters */
|
31 |
|
32 |
/* if we have no errors change the password */
|
33 |
if( empty( $output_field_errors ) ) {
|
34 |
+
|
35 |
$user_id = get_current_user_id();
|
36 |
+
if( ( !is_multisite() && current_user_can( 'edit_users' ) ) || ( is_multisite() && current_user_can( 'manage_network' ) ) ) {
|
37 |
+
if( isset( $_GET['edit_user'] ) && ! empty( $_GET['edit_user'] ) ){
|
38 |
+
$user_id = $_GET['edit_user'];
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
if( !isset( $_GET['edit_user'] ) ) {
|
43 |
+
wp_clear_auth_cookie();
|
44 |
+
/* set the new password for the user */
|
45 |
+
wp_set_password($_POST['passw1'], $user_id);
|
46 |
+
// Here we calculate the expiration length of the current auth cookie and compare it to the default expiration.
|
47 |
+
// If it's greater than this, then we know the user checked 'Remember Me' when they logged in.
|
48 |
+
$logged_in_cookie = wp_parse_auth_cookie('', 'logged_in');
|
49 |
+
/** This filter is documented in wp-includes/pluggable.php */
|
50 |
+
$default_cookie_life = apply_filters('auth_cookie_expiration', (2 * DAY_IN_SECONDS), $user_id, false);
|
51 |
+
$remember = (($logged_in_cookie['expiration'] - time()) > $default_cookie_life);
|
52 |
|
53 |
+
wp_set_auth_cookie($user_id, $remember);
|
54 |
+
}
|
55 |
+
else{
|
56 |
+
wp_set_password($_POST['passw1'], $user_id);
|
57 |
+
}
|
58 |
}
|
59 |
}
|
60 |
}
|
front-end/login.php
CHANGED
@@ -172,6 +172,9 @@ function wppb_front_end_login( $atts ){
|
|
172 |
if ( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'email' ) )
|
173 |
$form_args['label_username'] = __( 'Email', 'profile-builder' );
|
174 |
|
|
|
|
|
|
|
175 |
// change the label argument for username on login with username or email when Username and Email is enabled
|
176 |
if ( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'usernameemail' ) )
|
177 |
$form_args['label_username'] = __( 'Username or Email', 'profile-builder' );
|
172 |
if ( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'email' ) )
|
173 |
$form_args['label_username'] = __( 'Email', 'profile-builder' );
|
174 |
|
175 |
+
if ( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'username' ) )
|
176 |
+
$form_args['label_username'] = __( 'Username', 'profile-builder' );
|
177 |
+
|
178 |
// change the label argument for username on login with username or email when Username and Email is enabled
|
179 |
if ( isset( $wppb_generalSettings['loginWith'] ) && ( $wppb_generalSettings['loginWith'] == 'usernameemail' ) )
|
180 |
$form_args['label_username'] = __( 'Username or Email', 'profile-builder' );
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Profile Builder
|
4 |
Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
|
5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
6 |
-
Version: 2.3.
|
7 |
Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
|
8 |
Author URI: http://www.cozmoslabs.com/
|
9 |
License: GPL2
|
@@ -73,7 +73,7 @@ function wppb_free_plugin_init() {
|
|
73 |
*
|
74 |
*
|
75 |
*/
|
76 |
-
define('PROFILE_BUILDER_VERSION', '2.3.
|
77 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
78 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
79 |
define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
|
3 |
Plugin Name: Profile Builder
|
4 |
Plugin URI: http://www.cozmoslabs.com/wordpress-profile-builder/
|
5 |
Description: Login, registration and edit profile shortcodes for the front-end. Also you can chose what fields should be displayed or add new (custom) ones both in the front-end and in the dashboard.
|
6 |
+
Version: 2.3.5
|
7 |
Author: Cozmoslabs, Madalin Ungureanu, Antohe Cristian, Barina Gabriel, Mihai Iova
|
8 |
Author URI: http://www.cozmoslabs.com/
|
9 |
License: GPL2
|
73 |
*
|
74 |
*
|
75 |
*/
|
76 |
+
define('PROFILE_BUILDER_VERSION', '2.3.5' );
|
77 |
define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
78 |
define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
|
79 |
define('WPPB_SERVER_MAX_UPLOAD_SIZE_BYTE', apply_filters('wppb_server_max_upload_size_byte_constant', wppb_return_bytes(ini_get('upload_max_filesize'))));
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
|
4 |
Tags: registration, user profile, user registration, custom field registration, customize profile, user fields, extra user fields, builder, profile builder, custom user profile, user profile page, edit profile, custom registration, custom registration form, custom registration page, registration page, user custom fields, user listing, front-end user listing, user login, user registration form, front-end login, login redirect, login widget, front-end register, front-end registration, front-end edit profile, front-end user registration, custom redirects, user email, avatar upload, email confirmation, user approval, customize registration email, minimum password length, minimum password strength, password strength meter, multiple registration forms, register, register form, register user, register users, login form, member directory, redirect user
|
5 |
|
6 |
Requires at least: 3.1
|
7 |
-
Tested up to: 4.
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -147,6 +147,11 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
|
|
147 |
10. Profile Builder Login Widget
|
148 |
|
149 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
150 |
= 2.3.4 =
|
151 |
* We now load the plugin translation from the current theme in the folder local_pb_lang if it exists otherwise normally from the plugin dir
|
152 |
* Fixed notices regarding the 'add_meta_box' hook
|
4 |
Tags: registration, user profile, user registration, custom field registration, customize profile, user fields, extra user fields, builder, profile builder, custom user profile, user profile page, edit profile, custom registration, custom registration form, custom registration page, registration page, user custom fields, user listing, front-end user listing, user login, user registration form, front-end login, login redirect, login widget, front-end register, front-end registration, front-end edit profile, front-end user registration, custom redirects, user email, avatar upload, email confirmation, user approval, customize registration email, minimum password length, minimum password strength, password strength meter, multiple registration forms, register, register form, register user, register users, login form, member directory, redirect user
|
5 |
|
6 |
Requires at least: 3.1
|
7 |
+
Tested up to: 4.5
|
8 |
+
Stable tag: 2.3.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
147 |
10. Profile Builder Login Widget
|
148 |
|
149 |
== Changelog ==
|
150 |
+
= 2.3.5 =
|
151 |
+
* Fixed issue regarding password update not working in certain cases
|
152 |
+
* Changed label for when login with username is selected
|
153 |
+
* Fixed small css issue regarding checkboxes labels
|
154 |
+
|
155 |
= 2.3.4 =
|
156 |
* We now load the plugin translation from the current theme in the folder local_pb_lang if it exists otherwise normally from the plugin dir
|
157 |
* Fixed notices regarding the 'add_meta_box' hook
|