Version Description
- We now load the plugin translation from the current theme in the folder local_pb_lang if it exists otherwise normally from the plugin dir
- Fixed notices regarding the 'add_meta_box' hook
- Added a filter in wordpress-creation-kit API before testing for required fields: 'wck_before_test_required'
- Added hook before saving fields: 'wppb_before_saving_form_values'
Download this release
Release Info
Developer | madalin.ungureanu |
Plugin | User registration & user profile – Profile Builder |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
- assets/lib/wck-api/wordpress-creation-kit.php +4 -3
- front-end/class-formbuilder.php +3 -0
- index.php +7 -3
- readme.txt +9 -1
assets/lib/wck-api/wordpress-creation-kit.php
CHANGED
@@ -680,7 +680,7 @@ class Wordpress_Creation_Kit_PB{
|
|
680 |
|
681 |
/* Helper function for required fields */
|
682 |
function wck_test_required( $meta_array, $meta, $values, $id ){
|
683 |
-
|
684 |
$required_fields = array();
|
685 |
$required_fields_with_errors = array();
|
686 |
$required_message = '';
|
@@ -1453,8 +1453,9 @@ class WCK_Page_Creator_PB{
|
|
1453 |
/**
|
1454 |
* Do action 'add_meta_boxes'. This hook isn't executed by default on a admin page so we have to add it.
|
1455 |
*/
|
1456 |
-
function wck_settings_page_add_meta_boxes() {
|
1457 |
-
|
|
|
1458 |
}
|
1459 |
|
1460 |
/**
|
680 |
|
681 |
/* Helper function for required fields */
|
682 |
function wck_test_required( $meta_array, $meta, $values, $id ){
|
683 |
+
$fields = apply_filters( 'wck_before_test_required', $meta_array, $meta, $values, $id );
|
684 |
$required_fields = array();
|
685 |
$required_fields_with_errors = array();
|
686 |
$required_message = '';
|
1453 |
/**
|
1454 |
* Do action 'add_meta_boxes'. This hook isn't executed by default on a admin page so we have to add it.
|
1455 |
*/
|
1456 |
+
function wck_settings_page_add_meta_boxes() {
|
1457 |
+
global $post;
|
1458 |
+
do_action( 'add_meta_boxes', $this->hookname, $post );
|
1459 |
}
|
1460 |
|
1461 |
/**
|
front-end/class-formbuilder.php
CHANGED
@@ -255,6 +255,9 @@ class Profile_Builder_Form_Creator{
|
|
255 |
if( isset( $_REQUEST['action'] ) ){
|
256 |
$field_check_errors = $this->wppb_test_required_form_values( $_REQUEST );
|
257 |
if( empty( $field_check_errors ) ){
|
|
|
|
|
|
|
258 |
// we only have a $user_id on default registration (no email confirmation, no multisite)
|
259 |
$user_id = $this->wppb_save_form_values( $_REQUEST );
|
260 |
|
255 |
if( isset( $_REQUEST['action'] ) ){
|
256 |
$field_check_errors = $this->wppb_test_required_form_values( $_REQUEST );
|
257 |
if( empty( $field_check_errors ) ){
|
258 |
+
|
259 |
+
do_action('wppb_before_saving_form_values',$_REQUEST, $this->args);
|
260 |
+
|
261 |
// we only have a $user_id on default registration (no email confirmation, no multisite)
|
262 |
$user_id = $this->wppb_save_form_values( $_REQUEST );
|
263 |
|
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.3.
|
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.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'))));
|
@@ -103,7 +103,11 @@ function wppb_free_plugin_init() {
|
|
103 |
*/
|
104 |
function wppb_init_translation()
|
105 |
{
|
106 |
-
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
|
109 |
add_action('init', 'wppb_init_translation', 8);
|
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.3.4
|
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.3.4' );
|
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'))));
|
103 |
*/
|
104 |
function wppb_init_translation()
|
105 |
{
|
106 |
+
$current_theme = wp_get_theme();
|
107 |
+
if( !empty( $current_theme->stylesheet ) && file_exists( get_theme_root().'/'. $current_theme->stylesheet .'/local_pb_lang' ) )
|
108 |
+
load_plugin_textdomain( 'profile-builder', false, basename( dirname( __FILE__ ) ).'/../../themes/'.$current_theme->stylesheet.'/local_pb_lang' );
|
109 |
+
else
|
110 |
+
load_plugin_textdomain( 'profile-builder', false, basename(dirname(__FILE__)) . '/translation/' );
|
111 |
}
|
112 |
|
113 |
add_action('init', 'wppb_init_translation', 8);
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: registration, user profile, user registration, custom field registration,
|
|
5 |
|
6 |
Requires at least: 3.1
|
7 |
Tested up to: 4.4.2
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -15,6 +15,8 @@ Simple to use profile plugin allowing front-end login, user registration and edi
|
|
15 |
|
16 |
**Profile Builder is WordPress user registration done right.**
|
17 |
|
|
|
|
|
18 |
It lets you customize your website by adding a front-end menu for all your users,
|
19 |
giving them a more flexible way to modify their user profile or register users (front-end user registration).
|
20 |
Users with administrator rights can customize basic user fields or add custom user fields to the front-end forms.
|
@@ -145,6 +147,12 @@ This plugin adds/removes user fields in the front-end. Both default and extra pr
|
|
145 |
10. Profile Builder Login Widget
|
146 |
|
147 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
= 2.3.3 =
|
149 |
* Added more fields to be available in wpml string translations: labels, default value and default content
|
150 |
* Made css modifications so that Checkbox, Radio and Select fields align properly in Twenty Sixteen theme
|
5 |
|
6 |
Requires at least: 3.1
|
7 |
Tested up to: 4.4.2
|
8 |
+
Stable tag: 2.3.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
15 |
|
16 |
**Profile Builder is WordPress user registration done right.**
|
17 |
|
18 |
+
**Like this plugin?** Consider leaving a [5 star review](https://wordpress.org/support/view/plugin-reviews/profile-builder?filter=5).
|
19 |
+
|
20 |
It lets you customize your website by adding a front-end menu for all your users,
|
21 |
giving them a more flexible way to modify their user profile or register users (front-end user registration).
|
22 |
Users with administrator rights can customize basic user fields or add custom user fields to the front-end forms.
|
147 |
10. Profile Builder Login Widget
|
148 |
|
149 |
== Changelog ==
|
150 |
+
= 2.3.4 =
|
151 |
+
* We now load the plugin translation from the current theme in the folder local_pb_lang if it exists otherwise normally from the plugin dir
|
152 |
+
* Fixed notices regarding the 'add_meta_box' hook
|
153 |
+
* Added a filter in wordpress-creation-kit API before testing for required fields: 'wck_before_test_required'
|
154 |
+
* Added hook before saving fields: 'wppb_before_saving_form_values'
|
155 |
+
|
156 |
= 2.3.3 =
|
157 |
* Added more fields to be available in wpml string translations: labels, default value and default content
|
158 |
* Made css modifications so that Checkbox, Radio and Select fields align properly in Twenty Sixteen theme
|