User registration & user profile – Profile Builder - Version 3.7.2

Version Description

  • Correct some issues with updates
Download this release

Release Info

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

Code changes from version 3.7.1 to 3.7.2

front-end/recover.php CHANGED
@@ -184,7 +184,7 @@ function wppb_send_recovery_email( $user, $success ){
184
  $recovery_email_message = sprintf( __('Someone requested that the password be reset for the following account: <b>%1$s</b><br/>If this was a mistake, just ignore this email and nothing will happen.<br/>To reset your password, visit the following link:%2$s', 'profile-builder'), $display_username_email, '<a href="'.esc_url( add_query_arg( array( 'key' => $key ), wppb_curpageurl() ) ).'">'.esc_url( add_query_arg( array( 'key' => $key ), wppb_curpageurl() ) ).'</a>' );
185
  $recovery_email_message = apply_filters( 'wppb_recover_password_message_content_sent_to_user1', $recovery_email_message, $requested_user_id, $requested_user_login, $requested_user_email );
186
 
187
- $recovery_email_message_title = sprintf(__('Password Reset from "%1$s"', 'profile-builder'), $blogname = get_option('blogname') );
188
  $recovery_email_message_title = apply_filters('wppb_recover_password_message_title_sent_to_user1', $recovery_email_message_title, $requested_user_login);
189
 
190
  $recovery_email_from = apply_filters ( 'wppb_recover_password_notification_email_from_field', get_bloginfo( 'name' ) );
@@ -213,7 +213,7 @@ function wppb_send_successful_password_reset_email( $user, $new_pass ){
213
  //send secondary mail to the user containing the username and the new password
214
  $recovery_email_message = __( 'You have successfully reset your password.', 'profile-builder' );
215
  $recovery_email_message = apply_filters( 'wppb_recover_password_message_content_sent_to_user2', $recovery_email_message, $display_username_email, $new_pass, $user->ID );
216
- $recovery_email_message_title = sprintf( __('Password Successfully Reset for %1$s on "%2$s"', 'profile-builder' ), $display_username_email, $blogname = get_option('blogname') );
217
  $recovery_email_message_title = apply_filters( 'wppb_recover_password_message_title_sent_to_user2', $recovery_email_message_title, $display_username_email );
218
  $recovery_email_from = apply_filters ( 'wppb_recover_password_success_notification_email_from_field', get_bloginfo( 'name' ) );
219
  $recovery_email_context = 'email_user_recover_success';
184
  $recovery_email_message = sprintf( __('Someone requested that the password be reset for the following account: <b>%1$s</b><br/>If this was a mistake, just ignore this email and nothing will happen.<br/>To reset your password, visit the following link:%2$s', 'profile-builder'), $display_username_email, '<a href="'.esc_url( add_query_arg( array( 'key' => $key ), wppb_curpageurl() ) ).'">'.esc_url( add_query_arg( array( 'key' => $key ), wppb_curpageurl() ) ).'</a>' );
185
  $recovery_email_message = apply_filters( 'wppb_recover_password_message_content_sent_to_user1', $recovery_email_message, $requested_user_id, $requested_user_login, $requested_user_email );
186
 
187
+ $recovery_email_message_title = sprintf(__('Password Reset from %1$s', 'profile-builder'), $blogname = get_option('blogname') );
188
  $recovery_email_message_title = apply_filters('wppb_recover_password_message_title_sent_to_user1', $recovery_email_message_title, $requested_user_login);
189
 
190
  $recovery_email_from = apply_filters ( 'wppb_recover_password_notification_email_from_field', get_bloginfo( 'name' ) );
213
  //send secondary mail to the user containing the username and the new password
214
  $recovery_email_message = __( 'You have successfully reset your password.', 'profile-builder' );
215
  $recovery_email_message = apply_filters( 'wppb_recover_password_message_content_sent_to_user2', $recovery_email_message, $display_username_email, $new_pass, $user->ID );
216
+ $recovery_email_message_title = sprintf( __('Password Successfully Reset for %1$s on %2$s', 'profile-builder' ), $display_username_email, $blogname = get_option('blogname') );
217
  $recovery_email_message_title = apply_filters( 'wppb_recover_password_message_title_sent_to_user2', $recovery_email_message_title, $display_username_email );
218
  $recovery_email_from = apply_filters ( 'wppb_recover_password_success_notification_email_from_field', get_bloginfo( 'name' ) );
219
  $recovery_email_context = 'email_user_recover_success';
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.7.1
7
  * Author: Cozmoslabs
8
  * Author URI: https://www.cozmoslabs.com/
9
  * Text Domain: profile-builder
@@ -311,27 +311,27 @@ function wppb_plugin_init() {
311
  */
312
  if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists(WPPB_PLUGIN_DIR . '/update/update-checker.php') ) {
313
 
314
- if ( file_exists(WPPB_PAID_PLUGIN_DIR . '/add-ons/add-ons.php') )
315
  $localSerial = get_option('wppb_profile_builder_pro_serial');
316
  else
317
  $localSerial = get_option('wppb_profile_builder_hobbyist_serial');
318
 
319
  if( PROFILE_BUILDER == 'Profile Builder Pro' )
320
- $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBP', __FILE__, 'profile-builder-pro-update');
321
  else if( PROFILE_BUILDER == 'Profile Builder Basic' )
322
- $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBH', __FILE__, 'profile-builder-pro-update');
323
  else if( PROFILE_BUILDER == 'Profile Builder Elite' )
324
- $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBP', __FILE__, 'profile-builder-pro-update');
325
  else if( PROFILE_BUILDER == 'Profile Builder Unlimited' )
326
- $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBL', __FILE__, 'profile-builder-pro-update');
327
 
328
  function wppb_plugin_update_message( $plugin_data, $new_data ) {
329
 
330
- $wppb_version = file_exists( WPPB_PAID_PLUGIN_DIR . '/add-ons/add-ons.php ') ? 'pro' : 'hobbyist';
331
 
332
  $wppb_profile_builder_serial = get_option( 'wppb_profile_builder_'.$wppb_version.'_serial' );
333
  $wppb_profile_builder_serial_status = get_option( 'wppb_profile_builder_'.$wppb_version.'_serial_status' );
334
-
335
  if( empty( $wppb_profile_builder_serial ) ){
336
 
337
  echo '<br />' . wp_kses_post( sprintf( __('To enable updates, please enter your serial number on the <a href="%s">Register Version</a> page. If you don\'t have a serial number, please see <a href="%s" target="_blank">details & pricing</a>.', 'profile-builder' ), esc_url( admin_url('admin.php?page=profile-builder-register') ), 'https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=wppb-plugins-page&utm_campaign=WPPB' . $wppb_version ) );
@@ -343,7 +343,7 @@ function wppb_plugin_init() {
343
  }
344
 
345
  }
346
- add_action( 'in_plugin_update_message-' . plugin_basename( __FILE__ ), 'wppb_plugin_update_message', 10, 2 );
347
  }
348
 
349
 
@@ -360,7 +360,7 @@ add_action( 'plugins_loaded', 'wppb_plugin_init' );
360
  *
361
  *
362
  */
363
- define('PROFILE_BUILDER_VERSION', '3.7.1' );
364
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
365
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
366
  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.7.2
7
  * Author: Cozmoslabs
8
  * Author URI: https://www.cozmoslabs.com/
9
  * Text Domain: profile-builder
311
  */
312
  if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists(WPPB_PLUGIN_DIR . '/update/update-checker.php') ) {
313
 
314
+ if ( file_exists( WPPB_PAID_PLUGIN_DIR . '/add-ons/add-ons.php' ) )
315
  $localSerial = get_option('wppb_profile_builder_pro_serial');
316
  else
317
  $localSerial = get_option('wppb_profile_builder_hobbyist_serial');
318
 
319
  if( PROFILE_BUILDER == 'Profile Builder Pro' )
320
+ $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBP', WPPB_PAID_PLUGIN_DIR . '/index.php', 'profile-builder-pro-update');
321
  else if( PROFILE_BUILDER == 'Profile Builder Basic' )
322
+ $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBH', WPPB_PAID_PLUGIN_DIR . '/index.php', 'profile-builder-basic-update');
323
  else if( PROFILE_BUILDER == 'Profile Builder Elite' )
324
+ $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBP', WPPB_PAID_PLUGIN_DIR . '/index.php', 'profile-builder-elite-update');
325
  else if( PROFILE_BUILDER == 'Profile Builder Unlimited' )
326
+ $wppb_update = new wppb_PluginUpdateChecker('http://updatemetadata.cozmoslabs.com/?localSerialNumber=' . $localSerial . '&uniqueproduct=CLPBL', WPPB_PAID_PLUGIN_DIR . '/index.php', 'profile-builder-unlimited-update');
327
 
328
  function wppb_plugin_update_message( $plugin_data, $new_data ) {
329
 
330
+ $wppb_version = file_exists( WPPB_PAID_PLUGIN_DIR . '/add-ons/add-ons.php' ) ? 'pro' : 'hobbyist';
331
 
332
  $wppb_profile_builder_serial = get_option( 'wppb_profile_builder_'.$wppb_version.'_serial' );
333
  $wppb_profile_builder_serial_status = get_option( 'wppb_profile_builder_'.$wppb_version.'_serial_status' );
334
+
335
  if( empty( $wppb_profile_builder_serial ) ){
336
 
337
  echo '<br />' . wp_kses_post( sprintf( __('To enable updates, please enter your serial number on the <a href="%s">Register Version</a> page. If you don\'t have a serial number, please see <a href="%s" target="_blank">details & pricing</a>.', 'profile-builder' ), esc_url( admin_url('admin.php?page=profile-builder-register') ), 'https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=wppb-plugins-page&utm_campaign=WPPB' . $wppb_version ) );
343
  }
344
 
345
  }
346
+ add_action( 'in_plugin_update_message-' . strtolower( str_replace( ' ', '-', PROFILE_BUILDER ) ) . '/index.php', 'wppb_plugin_update_message', 10, 2 );
347
  }
348
 
349
 
360
  *
361
  *
362
  */
363
+ define('PROFILE_BUILDER_VERSION', '3.7.2' );
364
  define('WPPB_PLUGIN_DIR', plugin_dir_path(__FILE__));
365
  define('WPPB_PLUGIN_URL', plugin_dir_url(__FILE__));
366
  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.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -177,6 +177,9 @@ 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.7.1 =
181
  * Small changes to code
182
 
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.7.2
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.7.2 =
181
+ * Correct some issues with updates
182
+
183
  = 3.7.1 =
184
  * Small changes to code
185
 
translation/profile-builder.pot CHANGED
@@ -3655,7 +3655,7 @@ msgid "Someone requested that the password be reset for the following account: <
3655
  msgstr ""
3656
 
3657
  #: front-end/recover.php:187
3658
- msgid "Password Reset from \"%1$s\""
3659
  msgstr ""
3660
 
3661
  #: front-end/recover.php:214
@@ -3663,7 +3663,7 @@ msgid "You have successfully reset your password."
3663
  msgstr ""
3664
 
3665
  #: front-end/recover.php:216
3666
- msgid "Password Successfully Reset for %1$s on \"%2$s\""
3667
  msgstr ""
3668
 
3669
  #: front-end/recover.php:234
3655
  msgstr ""
3656
 
3657
  #: front-end/recover.php:187
3658
+ msgid "Password Reset from %1$s"
3659
  msgstr ""
3660
 
3661
  #: front-end/recover.php:214
3663
  msgstr ""
3664
 
3665
  #: front-end/recover.php:216
3666
+ msgid "Password Successfully Reset for %1$s on %2$s"
3667
  msgstr ""
3668
 
3669
  #: front-end/recover.php:234