Version Description
- Fixed website field not saving on registering with email confirmation
- Fixed a potential security vulnerability
- Removed condition in edit-users dropdown to allow custom ones
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | User registration & user profile – Profile Builder |
Version | 2.2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.3
- features/email-confirmation/email-confirmation.php +1 -1
- front-end/class-formbuilder.php +11 -15
- front-end/login.php +2 -2
- index.php +2 -2
- readme.txt +13 -3
features/email-confirmation/email-confirmation.php
CHANGED
@@ -154,7 +154,7 @@ function wppb_add_meta_to_user_on_activation( $user_id, $password, $meta ){
|
|
154 |
if( !empty( $meta['nickname'] ) )
|
155 |
update_user_meta( $user_id, 'nickname', $meta['nickname'] );
|
156 |
if( !empty( $meta['user_url'] ) )
|
157 |
-
|
158 |
if( !empty( $meta['aim'] ) )
|
159 |
update_user_meta( $user_id, 'aim', $meta['aim'] );
|
160 |
if( !empty( $meta['yim'] ) )
|
154 |
if( !empty( $meta['nickname'] ) )
|
155 |
update_user_meta( $user_id, 'nickname', $meta['nickname'] );
|
156 |
if( !empty( $meta['user_url'] ) )
|
157 |
+
wp_update_user(array('ID' => $user_id, 'user_url' => $meta['user_url']));
|
158 |
if( !empty( $meta['aim'] ) )
|
159 |
update_user_meta( $user_id, 'aim', $meta['aim'] );
|
160 |
if( !empty( $meta['yim'] ) )
|
front-end/class-formbuilder.php
CHANGED
@@ -470,22 +470,18 @@ class Profile_Builder_Form_Creator{
|
|
470 |
/**
|
471 |
* Function that returns the id for the current logged in user or for edit profile forms for administrator it can return the id of a selected user
|
472 |
*/
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
return $_GET['edit_user'];
|
483 |
-
}
|
484 |
-
}
|
485 |
-
}
|
486 |
|
487 |
-
|
488 |
-
|
489 |
|
490 |
function wppb_edit_profile_select_user_to_edit(){
|
491 |
|
470 |
/**
|
471 |
* Function that returns the id for the current logged in user or for edit profile forms for administrator it can return the id of a selected user
|
472 |
*/
|
473 |
+
function wppb_get_desired_user_id(){
|
474 |
+
if( $this->args['form_type'] == 'edit_profile' ){
|
475 |
+
//only admins
|
476 |
+
if( ( !is_multisite() && current_user_can( 'edit_users' ) ) || ( is_multisite() && current_user_can( 'manage_network' ) ) ) {
|
477 |
+
if( isset( $_GET['edit_user'] ) && ! empty( $_GET['edit_user'] ) ){
|
478 |
+
return $_GET['edit_user'];
|
479 |
+
}
|
480 |
+
}
|
481 |
+
}
|
|
|
|
|
|
|
|
|
482 |
|
483 |
+
return get_current_user_id();
|
484 |
+
}
|
485 |
|
486 |
function wppb_edit_profile_select_user_to_edit(){
|
487 |
|
front-end/login.php
CHANGED
@@ -10,8 +10,8 @@ function wppb_login_form_bottom( $form_part, $args ){
|
|
10 |
|
11 |
$form_part = '<input type="hidden" name="wppb_login" value="true"/>';
|
12 |
$form_part .= '<input type="hidden" name="wppb_form_location" value="'. $form_location .'"/>';
|
13 |
-
$form_part .= '<input type="hidden" name="wppb_request_url" value="'.wppb_curpageurl().'"/>';
|
14 |
-
$form_part .= '<input type="hidden" name="wppb_lostpassword_url" value="'
|
15 |
}
|
16 |
|
17 |
return $form_part;
|
10 |
|
11 |
$form_part = '<input type="hidden" name="wppb_login" value="true"/>';
|
12 |
$form_part .= '<input type="hidden" name="wppb_form_location" value="'. $form_location .'"/>';
|
13 |
+
$form_part .= '<input type="hidden" name="wppb_request_url" value="'. esc_url( wppb_curpageurl() ).'"/>';
|
14 |
+
$form_part .= '<input type="hidden" name="wppb_lostpassword_url" value="'.esc_url( $args['lostpassword_url'] ).'"/>';
|
15 |
}
|
16 |
|
17 |
return $form_part;
|
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.2.
|
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.2.
|
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.2.3
|
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.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'))));
|
readme.txt
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
=== Profile Builder - front-end user registration, login and edit profile ===
|
2 |
-
|
3 |
Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
|
4 |
Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
|
5 |
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, member directory
|
6 |
|
7 |
Requires at least: 3.1
|
8 |
-
Tested up to: 4.3
|
9 |
-
Stable tag: 2.2.
|
|
|
|
|
10 |
|
11 |
Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.
|
12 |
|
@@ -114,6 +115,11 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
|
|
114 |
10. Profile Builder Login Widget
|
115 |
|
116 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
117 |
= 2.2.2 =
|
118 |
* Fixed notice that was thrown in WordPress 4.3 related to WP_Widget constructor being deprecated in login widget.
|
119 |
|
@@ -480,3 +486,7 @@ Changes to the ReadMe File
|
|
480 |
= 1.0 =
|
481 |
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
482 |
|
|
|
|
|
|
|
|
1 |
=== Profile Builder - front-end user registration, login and edit profile ===
|
|
|
2 |
Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
|
3 |
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, member directory
|
5 |
|
6 |
Requires at least: 3.1
|
7 |
+
Tested up to: 4.3.1
|
8 |
+
Stable tag: 2.2.3
|
9 |
+
License: GPLv2 or later
|
10 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
Simple to use profile plugin allowing front-end login, user registration and edit profile by using shortcodes.
|
13 |
|
115 |
10. Profile Builder Login Widget
|
116 |
|
117 |
== Changelog ==
|
118 |
+
= 2.2.3 =
|
119 |
+
* Fixed website field not saving on registering with email confirmation
|
120 |
+
* Fixed a potential security vulnerability
|
121 |
+
* Removed condition in edit-users dropdown to allow custom ones
|
122 |
+
|
123 |
= 2.2.2 =
|
124 |
* Fixed notice that was thrown in WordPress 4.3 related to WP_Widget constructor being deprecated in login widget.
|
125 |
|
486 |
= 1.0 =
|
487 |
Added the posibility of displaying/hiding default WordPress information-fields, and to modify basic layout.
|
488 |
|
489 |
+
== Upgrade Notice ==
|
490 |
+
|
491 |
+
= 2.0.0 =
|
492 |
+
Plugin overhaul. Introduces new interface. Please upgrade.
|