User registration & user profile – Profile Builder - Version 3.6.9

Version Description

  • Fix: Fix a notice coming from content restriction function
  • Fix: Typo in back-end form fields select
  • Misc: Don't wrap content restriction messages in spans at save
  • Misc: Password strength to respect the back-end weak password checkbox
  • Misc: Mobile display improvements
  • Misc: Execute shortcodes in the conten of the compare shortcode
  • Misc: Order users by display name in the Edit Other Users Dropdown
Download this release

Release Info

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

Code changes from version 3.6.8 to 3.6.9

admin/admin-functions.php CHANGED
@@ -126,8 +126,9 @@ add_action( 'validate_password_reset', 'wppb_password_check_extra_conditions', 1
126
  function wppb_password_check_extra_conditions( $errors, $user ){
127
  $password = ( isset( $_POST[ 'pass1' ] ) && trim( $_POST[ 'pass1' ] ) ) ? $_POST[ 'pass1' ] : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash
128
 
129
- if( $password ){
130
  $wppb_generalSettings = get_option( 'wppb_general_settings' );
 
131
  if( !empty( $wppb_generalSettings['minimum_password_length'] ) ){
132
  if( strlen( $password ) < $wppb_generalSettings['minimum_password_length'] )
133
  $errors->add( 'pass', sprintf( __( '<strong>ERROR</strong>: The password must have the minimum length of %s characters', 'profile-builder' ), $wppb_generalSettings['minimum_password_length'] ) );
126
  function wppb_password_check_extra_conditions( $errors, $user ){
127
  $password = ( isset( $_POST[ 'pass1' ] ) && trim( $_POST[ 'pass1' ] ) ) ? $_POST[ 'pass1' ] : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash
128
 
129
+ if( $password && ( !isset( $_POST['pw_weak'] ) || $_POST['pw_weak'] != 'on' ) ){
130
  $wppb_generalSettings = get_option( 'wppb_general_settings' );
131
+
132
  if( !empty( $wppb_generalSettings['minimum_password_length'] ) ){
133
  if( strlen( $password ) < $wppb_generalSettings['minimum_password_length'] )
134
  $errors->add( 'pass', sprintf( __( '<strong>ERROR</strong>: The password must have the minimum length of %s characters', 'profile-builder' ), $wppb_generalSettings['minimum_password_length'] ) );
admin/advanced-settings/includes/shortcodes/compare.php CHANGED
@@ -46,5 +46,5 @@ function wppb_toolbox_compare_shortcode( $atts, $content ){
46
  $bool = $operators[$out['operator']]($l, $r);
47
 
48
  if( $bool )
49
- return $content;
50
  }
46
  $bool = $operators[$out['operator']]($l, $r);
47
 
48
  if( $bool )
49
+ return do_shortcode( $content );
50
  }
assets/css/style-front-end.css CHANGED
@@ -803,7 +803,7 @@ li.wppb-facet-search{
803
  6.0 Media Queries
804
  --------------------------------------------------------------*/
805
 
806
- @media screen and (max-width: 400px) {
807
 
808
  .wppb-form-field label,
809
  #wppb-login-wrap .login-username label,
@@ -815,7 +815,6 @@ li.wppb-facet-search{
815
  float:none;
816
  }
817
 
818
- .wppb-form-field input,
819
  .wppb-form-field input[type="text"], .wppb-form-field input[type="number"], .wppb-form-field input[type="email"], .wppb-form-field input[type="url"], .wppb-form-field input[type="password"], .wppb-form-field input[type="search"],
820
  .wppb-form-field select,
821
  .wppb-form-field textarea,
803
  6.0 Media Queries
804
  --------------------------------------------------------------*/
805
 
806
+ @media screen and (max-width: 500px) {
807
 
808
  .wppb-form-field label,
809
  #wppb-login-wrap .login-username label,
815
  float:none;
816
  }
817
 
 
818
  .wppb-form-field input[type="text"], .wppb-form-field input[type="number"], .wppb-form-field input[type="email"], .wppb-form-field input[type="url"], .wppb-form-field input[type="password"], .wppb-form-field input[type="search"],
819
  .wppb-form-field select,
820
  .wppb-form-field textarea,
assets/js/jquery-manage-fields-live-change.js CHANGED
@@ -857,7 +857,7 @@ function wppb_enable_select2(container_name){
857
  // Select2 initialization on manage fields.
858
 
859
  wppbSelect2.call( jQuery( container_name + ' #field'), {
860
- placeholder: 'Select an23q12 option',
861
  allowClear: true
862
  });
863
 
857
  // Select2 initialization on manage fields.
858
 
859
  wppbSelect2.call( jQuery( container_name + ' #field'), {
860
+ placeholder: 'Select an option',
861
  allowClear: true
862
  });
863
 
features/content-restriction/content-restriction-functions.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
  function wppb_content_restriction_is_post_restricted( $post_id = null ) {
6
 
7
  //fixes some php warnings with Onfleek theme
8
- if( is_array( $post_id ) && empty( $post_id ) )
9
  $post_id = null;
10
 
11
  global $post, $wppb_show_content, $wppb_is_post_restricted_arr;
@@ -49,8 +49,6 @@ function wppb_get_restriction_content_message( $message_type = '', $post_id = 0
49
  $wppb_content_restriction_message = apply_filters( 'wppb_get_restriction_content_message_default', $wppb_content_restriction_message, $message_type, $wppb_content_restriction_settings );
50
  }
51
 
52
- $wppb_content_restriction_message = '<span class="wppb-content-restriction-message">' . $wppb_content_restriction_message . '</span>';
53
-
54
  $custom_message_enabled = get_post_meta( $post_id, 'wppb-content-restrict-messages-enabled', true );
55
 
56
  if( ! empty( $post_id ) && ! empty( $custom_message_enabled ) ) {
@@ -72,7 +70,7 @@ function wppb_content_restriction_process_content_message( $type, $user_ID, $pos
72
  $user_info = get_userdata( $user_ID );
73
  $message = wppb_content_restriction_merge_tags( $message, $user_info, $post_id );
74
 
75
- return '<span class="wppb-frontend-restriction-message">'. $message .'</span>';
76
 
77
  }
78
 
@@ -265,7 +263,7 @@ function wppb_content_restriction_shortcode( $atts, $content = null ) {
265
  $message = '<span class="wppb-shortcode-restriction-message">' . $args['message'] . '</span>';
266
  } else {
267
  $type = ( is_user_logged_in() ? 'logged_in' : 'logged_out' );
268
- $message = wpautop( wppb_get_restriction_content_message( $type ) );
269
  }
270
 
271
  /*
5
  function wppb_content_restriction_is_post_restricted( $post_id = null ) {
6
 
7
  //fixes some php warnings with Onfleek theme
8
+ if( is_array( $post_id ) || empty( $post_id ) )
9
  $post_id = null;
10
 
11
  global $post, $wppb_show_content, $wppb_is_post_restricted_arr;
49
  $wppb_content_restriction_message = apply_filters( 'wppb_get_restriction_content_message_default', $wppb_content_restriction_message, $message_type, $wppb_content_restriction_settings );
50
  }
51
 
 
 
52
  $custom_message_enabled = get_post_meta( $post_id, 'wppb-content-restrict-messages-enabled', true );
53
 
54
  if( ! empty( $post_id ) && ! empty( $custom_message_enabled ) ) {
70
  $user_info = get_userdata( $user_ID );
71
  $message = wppb_content_restriction_merge_tags( $message, $user_info, $post_id );
72
 
73
+ return '<span class="wppb-frontend-restriction-message wppb-content-restriction-message">'. $message .'</span>';
74
 
75
  }
76
 
263
  $message = '<span class="wppb-shortcode-restriction-message">' . $args['message'] . '</span>';
264
  } else {
265
  $type = ( is_user_logged_in() ? 'logged_in' : 'logged_out' );
266
+ $message = '<span class="wppb-content-restriction-message">' . wpautop( wppb_get_restriction_content_message( $type ) ) . '</span>';
267
  }
268
 
269
  /*
front-end/class-formbuilder.php CHANGED
@@ -733,9 +733,14 @@ class Profile_Builder_Form_Creator{
733
  else
734
  $selected = get_current_user_id();
735
 
736
- $query_args['fields'] = array( 'ID', 'user_login', 'display_name' );
737
- $query_args['role'] = apply_filters( 'wppb_edit_profile_user_dropdown_role', '', $form_name );
 
 
 
 
738
  $users = get_users( apply_filters( 'wppb_edit_other_users_dropdown_query_args', $query_args ) );
 
739
  if( !empty( $users ) ) {
740
 
741
  /* turn it in a select2 */
733
  else
734
  $selected = get_current_user_id();
735
 
736
+ $query_args = array(
737
+ 'fields' => array( 'ID', 'user_login', 'display_name' ),
738
+ 'role' => apply_filters( 'wppb_edit_profile_user_dropdown_role', '', $form_name ),
739
+ 'orderby' => array( 'display_name', 'user_login' ),
740
+ );
741
+
742
  $users = get_users( apply_filters( 'wppb_edit_other_users_dropdown_query_args', $query_args ) );
743
+
744
  if( !empty( $users ) ) {
745
 
746
  /* turn it in a select2 */
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.6.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.6.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.6.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.6.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.9
7
- Stable tag: 3.6.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -177,6 +177,15 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
177
  15. Edit or Add New User Role
178
 
179
  == Changelog ==
 
 
 
 
 
 
 
 
 
180
  = 3.6.8 =
181
  * Fix: Sanitize form field titles and descriptions
182
  * Misc: Improve back-end compatibility with other plugins that use Select2
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.9
7
+ Stable tag: 3.6.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
177
  15. Edit or Add New User Role
178
 
179
  == Changelog ==
180
+ = 3.6.9 =
181
+ * Fix: Fix a notice coming from content restriction function
182
+ * Fix: Typo in back-end form fields select
183
+ * Misc: Don't wrap content restriction messages in spans at save
184
+ * Misc: Password strength to respect the back-end weak password checkbox
185
+ * Misc: Mobile display improvements
186
+ * Misc: Execute shortcodes in the conten of the compare shortcode
187
+ * Misc: Order users by display name in the Edit Other Users Dropdown
188
+
189
  = 3.6.8 =
190
  * Fix: Sanitize form field titles and descriptions
191
  * Misc: Improve back-end compatibility with other plugins that use Select2
screenshot-1.png DELETED
Binary file
screenshot-10.png DELETED
Binary file
screenshot-11.png DELETED
Binary file
screenshot-12.png DELETED
Binary file
screenshot-13.png DELETED
Binary file
screenshot-14.png DELETED
Binary file
screenshot-15.png DELETED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.png DELETED
Binary file
screenshot-6.png DELETED
Binary file
screenshot-7.png DELETED
Binary file
screenshot-8.png DELETED
Binary file
screenshot-9.png DELETED
Binary file
translation/profile-builder-de_DE.mo CHANGED
Binary file
translation/profile-builder-de_DE.po CHANGED
@@ -2,17 +2,17 @@
2
  # This file is distributed under the same license as the Profile Builder package.
3
  msgid ""
4
  msgstr ""
5
- "PO-Revision-Date: 2021-11-02 09:07+0200\n"
6
- "MIME-Version: 1.0\n"
7
- "Content-Type: text/plain; charset=UTF-8\n"
8
- "Content-Transfer-Encoding: 8bit\n"
9
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
- "X-Generator: Poedit 3.0\n"
11
  "Project-Id-Version: Profile Builder\n"
12
  "POT-Creation-Date: \n"
 
13
  "Last-Translator: \n"
14
  "Language-Team: \n"
15
  "Language: de_DE\n"
 
 
 
 
 
16
 
17
  #: profile-builder-2.0/admin/general-settings.php:154
18
  msgid "You can add / edit user roles at %1$sUsers > Roles Editor%2$s."
@@ -40,7 +40,7 @@ msgstr "Einzelne Umleitungen in Shortcodes definiert; der <strong><em>Redirect_p
40
 
41
  #: profile-builder-2.0/admin/manage-fields.php:1217
42
  msgid "If you're interested in displaying different fields in the registration and edit profile forms, please use the Multiple Registration & Edit Profile Forms Modules."
43
- msgstr "Wenn du verschiedene Felder in den Anmelde- und Profilbearbeitungs-Formularen verwenden möchtest, benutze bitte die Mehrfach-Registrierungs und Profilbearbeitungsformular Module,"
44
 
45
  #: profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:240
46
  msgid "Multiple Registration and Edit Profile form settings Redirects"
@@ -4651,11 +4651,11 @@ msgstr "Das Konto %1s wurde erfolgreich erstellt!"
4651
  #: profile-builder-2.0/front-end/class-formbuilder.php:318
4652
  #: profile-builder-2.0/front-end/class-formbuilder.php:328
4653
  msgid "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link."
4654
- msgstr "Bevor du auf dein Konto %1S zugreifen kannst, musst du deine E-Mail-Adresse bestätigen. Bitte überprüfe deinen Posteingang und klicke auf den Aktivierungslink."
4655
 
4656
  #: profile-builder-2.0/front-end/class-formbuilder.php:324
4657
  msgid "Before you can access your account %1s, an administrator has to approve it. You will be notified via email."
4658
- msgstr "Bevor du auf dein Konto %1S zugreifen kannst, muss es von einem Administrator genehmigt werden. Über eine Bestätigung wirst du per E-Mail benachrichtigt."
4659
 
4660
  #: profile-builder-2.0/front-end/class-formbuilder.php:347
4661
  msgid "Your profile has been successfully updated!"
2
  # This file is distributed under the same license as the Profile Builder package.
3
  msgid ""
4
  msgstr ""
 
 
 
 
 
 
5
  "Project-Id-Version: Profile Builder\n"
6
  "POT-Creation-Date: \n"
7
+ "PO-Revision-Date: 2022-03-15 09:44+0200\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: de_DE\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+ "X-Generator: Poedit 3.0.1\n"
16
 
17
  #: profile-builder-2.0/admin/general-settings.php:154
18
  msgid "You can add / edit user roles at %1$sUsers > Roles Editor%2$s."
40
 
41
  #: profile-builder-2.0/admin/manage-fields.php:1217
42
  msgid "If you're interested in displaying different fields in the registration and edit profile forms, please use the Multiple Registration & Edit Profile Forms Modules."
43
+ msgstr "Wenn du verschiedene Felder in den Anmelde- und Profilbearbeitungs-Formularen verwenden möchtest, benutze bitte die Mehrfach-Registrierungs und Profilbearbeitungsformular Module."
44
 
45
  #: profile-builder-2.0/modules/custom-redirects/custom_redirects_admin.php:240
46
  msgid "Multiple Registration and Edit Profile form settings Redirects"
4651
  #: profile-builder-2.0/front-end/class-formbuilder.php:318
4652
  #: profile-builder-2.0/front-end/class-formbuilder.php:328
4653
  msgid "Before you can access your account %1s, you need to confirm your email address. Please check your inbox and click the activation link."
4654
+ msgstr "Bevor du auf dein Konto %1s zugreifen kannst, musst du deine E-Mail-Adresse bestätigen. Bitte überprüfe deinen Posteingang und klicke auf den Aktivierungslink."
4655
 
4656
  #: profile-builder-2.0/front-end/class-formbuilder.php:324
4657
  msgid "Before you can access your account %1s, an administrator has to approve it. You will be notified via email."
4658
+ msgstr "Bevor du auf dein Konto %1s zugreifen kannst, muss es von einem Administrator genehmigt werden. Über eine Bestätigung wirst du per E-Mail benachrichtigt."
4659
 
4660
  #: profile-builder-2.0/front-end/class-formbuilder.php:347
4661
  msgid "Your profile has been successfully updated!"