WordPress.org

Plugin Directory

Changeset 499388


Ignore:
Timestamp:
02/02/12 22:06:52 (2 years ago)
Author:
Cimmo
Message:

Fix rules with confirmation page

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

Legend:

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

    r497237 r499388  
    620620 
    621621CHANGELOG: 
     622v2.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 
    622625v2.3.5 - 30/01/2012 
    623626- Added (required) for extra fields with unchecked 'Can be empty' rule (thanks to Paul 'Sparrow Hawk' Biron for the patch) 
  • cimy-user-extra-fields/trunk/cimy_uef_register.php

    r496557 r499388  
    11841184        if (function_exists("register_new_user")) { 
    11851185            // fake registration to check if no errors then we'll proceed to confirmation phase 
    1186             $errors = register_new_user($user_login, $user_email); 
     1186            $fake_errors = register_new_user($user_login, $user_email); 
    11871187            // ok we can remove registration checks 
    1188             remove_action('register_post', 'cimy_registration_check'); 
    1189             remove_action('register_post', 'cimy_registration_captcha_check'); 
     1188//          remove_action('register_post', 'cimy_registration_check'); 
     1189//          remove_action('register_post', 'cimy_registration_captcha_check'); 
    11901190        } 
    11911191        // 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! 
     
    11931193            return; 
    11941194 
    1195         if (!is_wp_error($errors)) { 
     1195        if (!is_wp_error($fake_errors)) { 
    11961196            $redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered'; 
    11971197            wp_safe_redirect( $redirect_to ); 
    11981198            exit(); 
    11991199        } 
    1200         else if ((count($errors->errors) == 1) && (isset($errors->errors["register_confirmation"]))) { 
     1200        else if ((count($fake_errors->errors) == 1) && (isset($fake_errors->errors["register_confirmation"]))) { 
    12011201            $confirmation = true; 
    12021202        } 
  • cimy-user-extra-fields/trunk/cimy_user_extra_fields.php

    r497081 r499388  
    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.3.5 
     6Version: 2.3.6 
    77Author: Marco Cimmino 
    88Author URI: mailto:cimmino.marco@gmail.com 
     
    173173 
    174174$cimy_uef_name = "Cimy User Extra Fields"; 
    175 $cimy_uef_version = "2.3.5"; 
     175$cimy_uef_version = "2.3.6"; 
    176176$cimy_uef_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/"; 
    177177$cimy_project_url = "http://www.marcocimmino.net/cimy-wordpress-plugins/support-the-cimy-project-paypal/"; 
Note: See TracChangeset for help on using the changeset viewer.