User registration & user profile – Profile Builder - Version 3.5.9

Version Description

  • Fix: Allow HTML in the register success messages
  • Misc: Added a filter that allows adding extra attributes to the login form password field: wppb_login_password_extra_attributes
  • Misc: Added filters for Select Multiple labels and values
Download this release

Release Info

Developer raster02
Plugin Icon 128x128 User registration & user profile – Profile Builder
Version 3.5.9
Comparing to
See all releases

Code changes from version 3.5.8 to 3.5.9

front-end/class-formbuilder.php CHANGED
@@ -359,20 +359,20 @@ class Profile_Builder_Form_Creator{
359
 
360
  switch( $account_management_settings ) {
361
  case 'ec-no_aa-no':
362
- $wppb_register_success_message = esc_html( apply_filters( 'wppb_register_success_message', sprintf( __( "The account %1s has been successfully created!", 'profile-builder' ), $account_name ), $account_name ) );
363
  break;
364
  case 'ec-yes_aa-no':
365
- $wppb_register_success_message = esc_html( apply_filters( 'wppb_register_success_message', sprintf( __( "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link.", 'profile-builder' ), $account_name ), $account_name ) );
366
  break;
367
  case 'ec-no_aa-yes':
368
  if( current_user_can( 'delete_users' ) ) {
369
- $wppb_register_success_message = esc_html( apply_filters( 'wppb_register_success_message', sprintf( __( "The account %1s has been successfully created!", 'profile-builder' ), $account_name ), $account_name ) );
370
- } else {
371
- $wppb_register_success_message = esc_html( apply_filters( 'wppb_register_success_message', sprintf( __( "Before you can access your account %1s, an administrator has to approve it. You will be notified via email.", 'profile-builder' ), $account_name ), $account_name ) );
372
  }
373
  break;
374
  case 'ec-yes_aa-yes':
375
- $wppb_register_success_message = esc_html( apply_filters( 'wppb_register_success_message', sprintf( __( "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link.", 'profile-builder' ), $account_name ), $account_name ) );
376
  break;
377
  }
378
 
359
 
360
  switch( $account_management_settings ) {
361
  case 'ec-no_aa-no':
362
+ $wppb_register_success_message = apply_filters( 'wppb_register_success_message', sprintf( __( "The account %1s has been successfully created!", 'profile-builder' ), $account_name ), $account_name ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */
363
  break;
364
  case 'ec-yes_aa-no':
365
+ $wppb_register_success_message = apply_filters( 'wppb_register_success_message', sprintf( __( "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link.", 'profile-builder' ), $account_name ), $account_name ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */
366
  break;
367
  case 'ec-no_aa-yes':
368
  if( current_user_can( 'delete_users' ) ) {
369
+ $wppb_register_success_message = apply_filters( 'wppb_register_success_message', sprintf( __( "The account %1s has been successfully created!", 'profile-builder' ), $account_name ), $account_name ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */
370
+ } else {
371
+ $wppb_register_success_message = apply_filters( 'wppb_register_success_message', sprintf( __( "Before you can access your account %1s, an administrator has to approve it. You will be notified via email.", 'profile-builder' ), $account_name ), $account_name ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */
372
  }
373
  break;
374
  case 'ec-yes_aa-yes':
375
+ $wppb_register_success_message = apply_filters( 'wppb_register_success_message', sprintf( __( "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link.", 'profile-builder' ), $account_name ), $account_name ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */
376
  break;
377
  }
378
 
front-end/login.php CHANGED
@@ -167,7 +167,7 @@ function wppb_login_form( $args = array() ) {
167
  </p>
168
  <p class="login-password">
169
  <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label>
170
- <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" />';
171
 
172
  /* add the HTML for the visibility toggle */
173
  $form .= wppb_password_visibility_toggle_html();
167
  </p>
168
  <p class="login-password">
169
  <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label>
170
+ <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" '. apply_filters( 'wppb_login_password_extra_attributes', '' ) .'/>';
171
 
172
  /* add the HTML for the visibility toggle */
173
  $form .= wppb_password_visibility_toggle_html();
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.8
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.8' );
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.9
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.9' );
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.1
7
- Stable tag: 3.5.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -176,6 +176,11 @@ 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.8 =
180
  * Fix: some incorrect translations which were causing errors
181
  * Fix: styling issues with Elementor widget
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.1
7
+ Stable tag: 3.5.9
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.9 =
180
+ * Fix: Allow HTML in the register success messages
181
+ * Misc: Added a filter that allows adding extra attributes to the login form password field: wppb_login_password_extra_attributes
182
+ * Misc: Added filters for Select Multiple labels and values
183
+
184
  = 3.5.8 =
185
  * Fix: some incorrect translations which were causing errors
186
  * Fix: styling issues with Elementor widget
translation/profile-builder.pot CHANGED
@@ -733,7 +733,7 @@ msgstr ""
733
  msgid "You have successfully linked your account to %%."
734
  msgstr ""
735
 
736
- #: ../pb-add-on-social-connect/index.php:390, ../pb-add-on-social-connect/twitter/twitter.php:109
737
  msgid "Something went wrong. Please try again later!"
738
  msgstr ""
739
 
@@ -1265,11 +1265,11 @@ msgstr ""
1265
  msgid "Connection with twitter Failed"
1266
  msgstr ""
1267
 
1268
- #: ../pb-add-on-social-connect/twitter/twitter.php:148
1269
  msgid "Sign in with Twitter"
1270
  msgstr ""
1271
 
1272
- #: ../pb-add-on-social-connect/twitter/twitter.php:142
1273
  msgid "Link with Twitter"
1274
  msgstr ""
1275
 
733
  msgid "You have successfully linked your account to %%."
734
  msgstr ""
735
 
736
+ #: ../pb-add-on-social-connect/index.php:390, ../pb-add-on-social-connect/twitter/twitter.php:112
737
  msgid "Something went wrong. Please try again later!"
738
  msgstr ""
739
 
1265
  msgid "Connection with twitter Failed"
1266
  msgstr ""
1267
 
1268
+ #: ../pb-add-on-social-connect/twitter/twitter.php:151
1269
  msgid "Sign in with Twitter"
1270
  msgstr ""
1271
 
1272
+ #: ../pb-add-on-social-connect/twitter/twitter.php:145
1273
  msgid "Link with Twitter"
1274
  msgstr ""
1275