Version Description
Download this release
Release Info
Developer | Cimmo |
Plugin | ![]() |
Version | 2.3.10 |
Comparing to | |
See all releases |
Code changes from version 2.3.9 to 2.3.10
- README_OFFICIAL.txt +5 -0
- cimy_uef_email_handler.php +19 -6
- cimy_uef_init.php +9 -0
- cimy_user_extra_fields.php +2 -2
- css/cimy_uef_register_nopasswordlabel.css +3 -0
- readme.txt +1 -1
README_OFFICIAL.txt
CHANGED
@@ -619,6 +619,11 @@ A lot of times I cannot reproduce the problem and I need more details, so if you
|
|
619 |
|
620 |
|
621 |
CHANGELOG:
|
|
|
|
|
|
|
|
|
|
|
622 |
v2.3.9 - 06/08/2012
|
623 |
- Fixed another possible security issue where webservers with poor configuration might end up executing arbitrary PHP code when a malicious [file|avatar|picture] is uploaded (thanks to Artyom Skrobov from Secunia)
|
624 |
- Fixed dropdown-multi were not saved correctly under 'Users Extended' (thanks to David Vranish)
|
619 |
|
620 |
|
621 |
CHANGELOG:
|
622 |
+
v2.3.10 - 24/09/2012
|
623 |
+
- Fixed email is not sent to the user once confirmed its email address (non-MS only) (introduced in v2.3.9) (thanks to nerik73 and all people that reported this)
|
624 |
+
- Fixed 'A password will be e-mailed to you.' will be hidden when password field is not hidden (non-MS only) (thanks to lcool for the idea)
|
625 |
+
- Fixed labels for dropdown and dropdown-multi were not correctly showed in the welcome email
|
626 |
+
|
627 |
v2.3.9 - 06/08/2012
|
628 |
- Fixed another possible security issue where webservers with poor configuration might end up executing arbitrary PHP code when a malicious [file|avatar|picture] is uploaded (thanks to Artyom Skrobov from Secunia)
|
629 |
- Fixed dropdown-multi were not saved correctly under 'Users Extended' (thanks to David Vranish)
|
cimy_uef_email_handler.php
CHANGED
@@ -95,15 +95,28 @@ function cimy_uef_mail_fields($user = false, $activation_data = false) {
|
|
95 |
|
96 |
if (empty($meta)) {
|
97 |
// normal fields
|
98 |
-
foreach ($wp_hidden_fields as $field)
|
99 |
-
if ((!empty($user->{$field["post_name"]})) && ($field["type"] != "password"))
|
100 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
102 |
else {
|
103 |
$fields = get_cimyFields(true);
|
104 |
foreach ($fields as $field) {
|
105 |
-
if ((!empty($meta[$wp_fields_name_prefix.$field["NAME"]])) && ($field["TYPE"] != "password"))
|
106 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
}
|
109 |
|
@@ -268,7 +281,7 @@ function cimy_uef_activate_signup($key) {
|
|
268 |
|
269 |
$wpdb->update( $wpdb->prefix."signups", array('active' => 1, 'activated' => $now), array('activation_key' => $key) );
|
270 |
|
271 |
-
if (
|
272 |
return new WP_Error( 'user_already_exists', __( 'That username is already activated.', $cimy_uef_domain), $signup);
|
273 |
|
274 |
$options = cimy_get_options();
|
95 |
|
96 |
if (empty($meta)) {
|
97 |
// normal fields
|
98 |
+
foreach ($wp_hidden_fields as $field) {
|
99 |
+
if ((!empty($user->{$field["post_name"]})) && ($field["type"] != "password")) {
|
100 |
+
$label = $field["label"];
|
101 |
+
if ($field["type"] == "dropdown" || $field["type"] == "dropdown-multi") {
|
102 |
+
$ret = cimy_dropDownOptions($label, "");
|
103 |
+
$label = $ret['label'];
|
104 |
+
}
|
105 |
+
$message.= sprintf(__('%s: %s', $cimy_uef_domain), $label, $user->{$field["post_name"]}) . "\r\n";
|
106 |
+
}
|
107 |
+
}
|
108 |
}
|
109 |
else {
|
110 |
$fields = get_cimyFields(true);
|
111 |
foreach ($fields as $field) {
|
112 |
+
if ((!empty($meta[$wp_fields_name_prefix.$field["NAME"]])) && ($field["TYPE"] != "password")) {
|
113 |
+
$label = $field["LABEL"];
|
114 |
+
if ($field["TYPE"] == "dropdown" || $field["TYPE"] == "dropdown-multi") {
|
115 |
+
$ret = cimy_dropDownOptions($label, "");
|
116 |
+
$label = $ret['label'];
|
117 |
+
}
|
118 |
+
$message.= sprintf(__('%s: %s', $cimy_uef_domain), $label, $meta[$wp_fields_name_prefix.$field["NAME"]]) . "\r\n";
|
119 |
+
}
|
120 |
}
|
121 |
}
|
122 |
|
281 |
|
282 |
$wpdb->update( $wpdb->prefix."signups", array('active' => 1, 'activated' => $now), array('activation_key' => $key) );
|
283 |
|
284 |
+
if ($user_already_exists)
|
285 |
return new WP_Error( 'user_already_exists', __( 'That username is already activated.', $cimy_uef_domain), $signup);
|
286 |
|
287 |
$options = cimy_get_options();
|
cimy_uef_init.php
CHANGED
@@ -74,6 +74,15 @@ function cimy_uef_register_css() {
|
|
74 |
global $cuef_css_webpath;
|
75 |
wp_register_style("cimy_uef_register", $cuef_css_webpath."/cimy_uef_register.css", false, false);
|
76 |
wp_enqueue_style("cimy_uef_register");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
cimy_uef_init_javascripts("show_in_reg");
|
78 |
// needed till they fix this bug: http://core.trac.wordpress.org/ticket/17916#comment:18
|
79 |
wp_print_styles();
|
74 |
global $cuef_css_webpath;
|
75 |
wp_register_style("cimy_uef_register", $cuef_css_webpath."/cimy_uef_register.css", false, false);
|
76 |
wp_enqueue_style("cimy_uef_register");
|
77 |
+
if (!is_multisite()) {
|
78 |
+
$options = cimy_get_options();
|
79 |
+
if (in_array("password", $options["wp_hidden_fields"])) {
|
80 |
+
// this CSS will hide the label "A password will be e-mailed to you."
|
81 |
+
wp_register_style("cimy_uef_register_nopasswordlabel", $cuef_css_webpath."/cimy_uef_register_nopasswordlabel.css", false, false);
|
82 |
+
wp_enqueue_style("cimy_uef_register_nopasswordlabel");
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
cimy_uef_init_javascripts("show_in_reg");
|
87 |
// needed till they fix this bug: http://core.trac.wordpress.org/ticket/17916#comment:18
|
88 |
wp_print_styles();
|
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
|
@@ -162,7 +162,7 @@ require_once($cuef_plugin_dir.'/cimy_uef_admin.php');
|
|
162 |
add_action('admin_init', 'cimy_uef_admin_init');
|
163 |
|
164 |
$cimy_uef_name = "Cimy User Extra Fields";
|
165 |
-
$cimy_uef_version = "2.3.
|
166 |
$cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/";
|
167 |
$cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/";
|
168 |
|
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.10
|
7 |
Author: Marco Cimmino
|
8 |
Author URI: mailto:cimmino.marco@gmail.com
|
9 |
License: GPL2
|
162 |
add_action('admin_init', 'cimy_uef_admin_init');
|
163 |
|
164 |
$cimy_uef_name = "Cimy User Extra Fields";
|
165 |
+
$cimy_uef_version = "2.3.10";
|
166 |
$cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/";
|
167 |
$cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/";
|
168 |
|
css/cimy_uef_register_nopasswordlabel.css
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
#reg_passmail {
|
2 |
+
display: none;
|
3 |
+
}
|
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.4
|
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.4
|
8 |
+
Stable tag: 2.3.10
|
9 |
|
10 |
Add some useful fields to registration and user's info
|
11 |
|