Plugin Directory

Changeset 1353893


Ignore:
Timestamp:
02/19/2016 05:40:00 AM (10 years ago)
Author:
Cimmo
Message:

Fixed registration rules were applied on profile update when certain plug-ins are installed, like bbpress (thanks to Vane R.)

Location:
cimy-user-extra-fields/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cimy-user-extra-fields/trunk/README_OFFICIAL.txt

    r1345455 r1353893  
    632632
    633633CHANGELOG:
     634v2.7.2 - /02/2016
     635- Fixed registration rules were applied on profile update when certain plug-ins are installed, like bbpress (thanks to Vane R.)
     636
    634637v2.7.1 - 08/02/2016
    635638- Added support for reCAPTCHA v2
  • cimy-user-extra-fields/trunk/cimy_uef_register.php

    r1344886 r1353893  
    312312// added for profile rules check
    313313function cimy_profile_check_wrapper($errors, $update, $user) {
    314     $errors = cimy_registration_check($user->user_login, $user->user_email, $errors);
     314    $errors = cimy_registration_check($user->user_login, $user->user_email, $errors, true);
    315315
    316316    if (!empty($errors))
     
    318318}
    319319
    320 function cimy_registration_check($user_login, $user_email, $errors) {
     320function cimy_registration_check($user_login, $user_email, $errors, $from_profile = false) {
    321321    global $wpdb, $rule_canbeempty, $rule_email, $rule_maxlen, $fields_name_prefix, $wp_fields_name_prefix, $rule_equalto_case_sensitive, $apply_equalto_rule, $cimy_uef_domain, $cimy_uef_file_types, $rule_equalto_regex, $user_level, $cimy_uef_file_images_types, $wp_hidden_fields, $rule_maxlen_is_str;
    322322
     
    349349    $extra_fields = get_cimyFields(false, true);
    350350    $wp_fields = get_cimyFields(true);
    351     $from_profile = false;
    352     if (!empty($_POST["from"]) && $_POST["from"] == "profile")
    353         $from_profile = true;
    354351    $i = 1;
    355352
  • cimy-user-extra-fields/trunk/cimy_user_extra_fields.php

    r1344895 r1353893  
    44Plugin URI: http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/
    55Description: Add some useful fields to registration and user's info
    6 Version: 2.7.1
     6Version: 2.7.1.99
    77Author: Marco Cimmino
    88Author URI: mailto:[email protected]
Note: See TracChangeset for help on using the changeset viewer.