Version Description
Download this release
Release Info
Developer | Cimmo |
Plugin | Cimy User Extra Fields |
Version | 2.3.6 |
Comparing to | |
See all releases |
Code changes from version 2.3.5 to 2.3.6
- README_OFFICIAL.txt +3 -0
- cimy_uef_register.php +5 -5
- cimy_user_extra_fields.php +2 -2
- readme.txt +1 -1
README_OFFICIAL.txt
CHANGED
@@ -619,6 +619,9 @@ A lot of times I cannot reproduce the problem and I need more details, so if you
|
|
619 |
|
620 |
|
621 |
CHANGELOG:
|
|
|
|
|
|
|
622 |
v2.3.5 - 30/01/2012
|
623 |
- Added (required) for extra fields with unchecked 'Can be empty' rule (thanks to Paul 'Sparrow Hawk' Biron for the patch)
|
624 |
- Changed fields' description is now consistent with WordPress look (thanks to Paul 'Sparrow Hawk' Biron for the patch)
|
619 |
|
620 |
|
621 |
CHANGELOG:
|
622 |
+
v2.3.6 - 03/02/2012
|
623 |
+
- Fixed rules are not applied if form confirmation is turned on (introduced with v2.3.1) (thanks to Pietro Gabba)
|
624 |
+
|
625 |
v2.3.5 - 30/01/2012
|
626 |
- Added (required) for extra fields with unchecked 'Can be empty' rule (thanks to Paul 'Sparrow Hawk' Biron for the patch)
|
627 |
- Changed fields' description is now consistent with WordPress look (thanks to Paul 'Sparrow Hawk' Biron for the patch)
|
cimy_uef_register.php
CHANGED
@@ -1183,21 +1183,21 @@ function cimy_confirmation_form() {
|
|
1183 |
|
1184 |
if (function_exists("register_new_user")) {
|
1185 |
// fake registration to check if no errors then we'll proceed to confirmation phase
|
1186 |
-
$
|
1187 |
// ok we can remove registration checks
|
1188 |
-
|
1189 |
-
|
1190 |
}
|
1191 |
// Might be Theme My Login, they have its own register_new_user but they don't have login_header seems so, so let's return for now!
|
1192 |
else
|
1193 |
return;
|
1194 |
|
1195 |
-
if (!is_wp_error($
|
1196 |
$redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
|
1197 |
wp_safe_redirect( $redirect_to );
|
1198 |
exit();
|
1199 |
}
|
1200 |
-
else if ((count($
|
1201 |
$confirmation = true;
|
1202 |
}
|
1203 |
}
|
1183 |
|
1184 |
if (function_exists("register_new_user")) {
|
1185 |
// fake registration to check if no errors then we'll proceed to confirmation phase
|
1186 |
+
$fake_errors = register_new_user($user_login, $user_email);
|
1187 |
// ok we can remove registration checks
|
1188 |
+
// remove_action('register_post', 'cimy_registration_check');
|
1189 |
+
// remove_action('register_post', 'cimy_registration_captcha_check');
|
1190 |
}
|
1191 |
// Might be Theme My Login, they have its own register_new_user but they don't have login_header seems so, so let's return for now!
|
1192 |
else
|
1193 |
return;
|
1194 |
|
1195 |
+
if (!is_wp_error($fake_errors)) {
|
1196 |
$redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
|
1197 |
wp_safe_redirect( $redirect_to );
|
1198 |
exit();
|
1199 |
}
|
1200 |
+
else if ((count($fake_errors->errors) == 1) && (isset($fake_errors->errors["register_confirmation"]))) {
|
1201 |
$confirmation = true;
|
1202 |
}
|
1203 |
}
|
cimy_user_extra_fields.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Cimy User Extra Fields
|
4 |
Plugin URI: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/
|
5 |
Description: Add some useful fields to registration and user's info
|
6 |
-
Version: 2.3.
|
7 |
Author: Marco Cimmino
|
8 |
Author URI: mailto:cimmino.marco@gmail.com
|
9 |
License: GPL2
|
@@ -172,7 +172,7 @@ require_once($cuef_plugin_dir.'/cimy_uef_admin.php');
|
|
172 |
add_action('admin_init', 'cimy_uef_admin_init');
|
173 |
|
174 |
$cimy_uef_name = "Cimy User Extra Fields";
|
175 |
-
$cimy_uef_version = "2.3.
|
176 |
$cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/";
|
177 |
$cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/";
|
178 |
|
3 |
Plugin Name: Cimy User Extra Fields
|
4 |
Plugin URI: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/
|
5 |
Description: Add some useful fields to registration and user's info
|
6 |
+
Version: 2.3.6
|
7 |
Author: Marco Cimmino
|
8 |
Author URI: mailto:cimmino.marco@gmail.com
|
9 |
License: GPL2
|
172 |
add_action('admin_init', 'cimy_uef_admin_init');
|
173 |
|
174 |
$cimy_uef_name = "Cimy User Extra Fields";
|
175 |
+
$cimy_uef_version = "2.3.6";
|
176 |
$cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/";
|
177 |
$cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/";
|
178 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Website link: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra
|
|
5 |
Tags: cimy, admin, registration, profile, extra fields, avatar, gravatar, recaptcha, captcha
|
6 |
Requires at least: 3.1
|
7 |
Tested up to: 3.3
|
8 |
-
Stable tag: 2.3.
|
9 |
|
10 |
Add some useful fields to registration and user's info
|
11 |
|
5 |
Tags: cimy, admin, registration, profile, extra fields, avatar, gravatar, recaptcha, captcha
|
6 |
Requires at least: 3.1
|
7 |
Tested up to: 3.3
|
8 |
+
Stable tag: 2.3.6
|
9 |
|
10 |
Add some useful fields to registration and user's info
|
11 |
|