User registration & user profile – Profile Builder - Version 3.1.9

Version Description

  • Now the login widget shows errors in the backend if a valid URL was not entered
  • Fixed a warning about non-numerical value on auto-login.
  • Fixed a potential php notice
  • Fixed a filter that was not sending enough parameters to the Field Visibility addon
  • Fix responsive media queries not being applied correctly
Download this release

Release Info

Developer madalin.ungureanu
Plugin Icon 128x128 User registration & user profile – Profile Builder
Version 3.1.9
Comparing to
See all releases

Code changes from version 3.1.8 to 3.1.9

assets/css/style-front-end.css CHANGED
@@ -790,7 +790,8 @@ li.wppb-facet-search{
790
  }
791
 
792
  .wppb-form-field input,
793
- .wppb-form-field select,
 
794
  .wppb-form-field textarea,
795
  .wppb-checkboxes,
796
  .wppb-radios,
790
  }
791
 
792
  .wppb-form-field input,
793
+ .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"],
794
+ .wppb-form-field select,
795
  .wppb-form-field textarea,
796
  .wppb-checkboxes,
797
  .wppb-radios,
assets/js/jquery-pb-sitewide.js CHANGED
@@ -164,3 +164,18 @@ jQuery( function() {
164
  }
165
  }
166
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  }
165
  }
166
  });
167
+
168
+ /*
169
+ * Login Widget trigger html validation
170
+ */
171
+ jQuery( function() {
172
+ if( jQuery( ".widgets-php" ).length != 0 ){//should be in the admin widgets page
173
+ jQuery("#wpbody").on("click", ".widget-control-save", function () {
174
+ if (jQuery('.wppb-widget-url-field', jQuery(this).closest('form')).length != 0) {//we are in the PB widget
175
+ jQuery('.wppb-widget-url-field', jQuery(this).closest('form')).each(function () {
176
+ jQuery(this)[0].reportValidity();//reportValidity is the function that triggers the default html validation
177
+ });
178
+ }
179
+ });
180
+ }
181
+ });
features/login-widget/login-widget.php CHANGED
@@ -66,17 +66,17 @@ class wppb_login_widget extends WP_Widget {
66
 
67
  <p>
68
  <label for="<?php echo $this->get_field_id( 'redirect' ); ?>"><?php _e( 'After login redirect URL (optional):', 'profile-builder' ); ?></label>
69
- <input id="<?php echo $this->get_field_id( 'redirect' ); ?>" class="widefat" type="url" name="<?php echo $this->get_field_name( 'redirect' ); ?>" value="<?php echo $instance['redirect']; ?>" style="width:100%;" />
70
  </p>
71
 
72
  <p>
73
  <label for="<?php echo $this->get_field_id( 'register' ); ?>"><?php _e( 'Register page URL (optional):', 'profile-builder' ); ?></label>
74
- <input id="<?php echo $this->get_field_id( 'register' ); ?>" class="widefat" type="url" name="<?php echo $this->get_field_name( 'register' ); ?>" value="<?php echo $instance['register']; ?>" style="width:100%;" />
75
  </p>
76
 
77
  <p>
78
  <label for="<?php echo $this->get_field_id( 'lostpass' ); ?>"><?php _e( 'Password Recovery page URL (optional):', 'profile-builder' ); ?></label>
79
- <input id="<?php echo $this->get_field_id( 'lostpass' ); ?>" class="widefat" type="url" name="<?php echo $this->get_field_name( 'lostpass' ); ?>" value="<?php echo $instance['lostpass']; ?>" style="width:100%;" />
80
  </p>
81
 
82
  <?php
66
 
67
  <p>
68
  <label for="<?php echo $this->get_field_id( 'redirect' ); ?>"><?php _e( 'After login redirect URL (optional):', 'profile-builder' ); ?></label>
69
+ <input id="<?php echo $this->get_field_id( 'redirect' ); ?>" class="widefat wppb-widget-url-field" type="url" name="<?php echo $this->get_field_name( 'redirect' ); ?>" value="<?php echo $instance['redirect']; ?>" style="width:100%;" />
70
  </p>
71
 
72
  <p>
73
  <label for="<?php echo $this->get_field_id( 'register' ); ?>"><?php _e( 'Register page URL (optional):', 'profile-builder' ); ?></label>
74
+ <input id="<?php echo $this->get_field_id( 'register' ); ?>" class="widefat wppb-widget-url-field" type="url" name="<?php echo $this->get_field_name( 'register' ); ?>" value="<?php echo $instance['register']; ?>" style="width:100%;" />
75
  </p>
76
 
77
  <p>
78
  <label for="<?php echo $this->get_field_id( 'lostpass' ); ?>"><?php _e( 'Password Recovery page URL (optional):', 'profile-builder' ); ?></label>
79
+ <input id="<?php echo $this->get_field_id( 'lostpass' ); ?>" class="widefat wppb-widget-url-field" type="url" name="<?php echo $this->get_field_name( 'lostpass' ); ?>" value="<?php echo $instance['lostpass']; ?>" style="width:100%;" />
80
  </p>
81
 
82
  <?php
front-end/class-formbuilder.php CHANGED
@@ -763,7 +763,7 @@ function wppb_autologin_after_registration(){
763
  $arr_params = array( 'autologin', 'uid', '_wpnonce' );
764
  $current_page_url = remove_query_arg( $arr_params, wppb_curpageurl() );
765
 
766
- if ( ! ( wp_verify_nonce( $nonce , 'autologin-'.$uid.'-'.(int)( time() / 60 ) ) || wp_verify_nonce( $nonce , 'autologin-'.$uid.'-'.(int)( time() / 60 ) - 1 ) ) ){
767
  wp_redirect( $current_page_url );
768
  exit;
769
  } else {
763
  $arr_params = array( 'autologin', 'uid', '_wpnonce' );
764
  $current_page_url = remove_query_arg( $arr_params, wppb_curpageurl() );
765
 
766
+ if ( ! ( wp_verify_nonce( $nonce , 'autologin-'.$uid.'-'.(int)( time() / 60 ) ) || wp_verify_nonce( $nonce , 'autologin-'.$uid.'-'.(int)( time() / 60 - 1 ) ) ) ){
767
  wp_redirect( $current_page_url );
768
  exit;
769
  } else {
front-end/default-fields/description/description.php CHANGED
@@ -9,7 +9,7 @@ function wppb_description_handler( $output, $form_location, $field, $user_id, $f
9
  $input_value = $profileuser->description;
10
  }
11
 
12
- if ( trim( $input_value ) == '' )
13
  $input_value = $field['default-content'];
14
 
15
  $input_value = ( isset( $request_data['description'] ) ? trim( $request_data['description'] ) : $input_value );
9
  $input_value = $profileuser->description;
10
  }
11
 
12
+ if ( trim( $input_value ) == '' && !empty( $field['default-content'] ) )
13
  $input_value = $field['default-content'];
14
 
15
  $input_value = ( isset( $request_data['description'] ) ? trim( $request_data['description'] ) : $input_value );
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.1.8
7
  Author: Cozmoslabs
8
  Author URI: https://www.cozmoslabs.com/
9
  Text Domain: profile-builder
@@ -63,7 +63,7 @@ function wppb_free_plugin_init() {
63
  *
64
  *
65
  */
66
- define('PROFILE_BUILDER_VERSION', '3.1.8' );
67
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
68
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
69
  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.1.9
7
  Author: Cozmoslabs
8
  Author URI: https://www.cozmoslabs.com/
9
  Text Domain: profile-builder
63
  *
64
  *
65
  */
66
+ define('PROFILE_BUILDER_VERSION', '3.1.9' );
67
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
68
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
69
  define('WPPB_PLUGIN_BASENAME', plugin_basename(__FILE__));
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === User Registration & User Profile - Profile Builder ===
2
- Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel
3
  Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
4
  Tags: user registration, user profile, user registration form, user fields, extra 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, profile
5
  Requires at least: 3.1
6
- Tested up to: 5.4.1
7
- Stable tag: 3.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -169,6 +169,13 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
169
  12. Role Editor
170
 
171
  == Changelog ==
 
 
 
 
 
 
 
172
  = 3.1.8 =
173
  * Fixed a potential PHP error
174
  * Fixed a string consistency problem on Login form
1
  === User Registration & User Profile - Profile Builder ===
2
+ Contributors: cozmoslabs, reflectionmedia, sareiodata, adispiac, madalin.ungureanu, iova.mihai, barinagabriel, vadasan
3
  Donate link: http://www.cozmoslabs.com/wordpress-profile-builder/
4
  Tags: user registration, user profile, user registration form, user fields, extra 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, profile
5
  Requires at least: 3.1
6
+ Tested up to: 5.4.2
7
+ Stable tag: 3.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
169
  12. Role Editor
170
 
171
  == Changelog ==
172
+ = 3.1.9 =
173
+ * Now the login widget shows errors in the backend if a valid URL was not entered
174
+ * Fixed a warning about non-numerical value on auto-login.
175
+ * Fixed a potential php notice
176
+ * Fixed a filter that was not sending enough parameters to the Field Visibility addon
177
+ * Fix responsive media queries not being applied correctly
178
+
179
  = 3.1.8 =
180
  * Fixed a potential PHP error
181
  * Fixed a string consistency problem on Login form