Plugin Directory

Changeset 1355512


Ignore:
Timestamp:
02/22/2016 07:39:37 AM (10 years ago)
Author:
Cimmo
Message:

Fixed deprecated argument used when Cimy User Extra Fields is not installed and activated (introduced in v1.5.0)
Fixed password change email conflict with Cimy User Extra Fields

Location:
cimy-user-manager/trunk
Files:
2 edited

Legend:

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

    r1345451 r1355512  
    135135
    136136CHANGELOG:
     137v1.5.1 - /02/2016
     138- Fixed deprecated argument used when Cimy User Extra Fields is not installed and activated (introduced in v1.5.0)
     139- Fixed password change email conflict with Cimy User Extra Fields
     140
    137141v1.5.0 - 08/02/2016
    138142- Fixed welcome email for new users, broken since WordPress 4.3
  • cimy-user-manager/trunk/cimy_user_manager.php

    r1344870 r1355512  
    103103
    104104function cimy_um_send_password_change_email($send, $user, $userdata) {
    105     return empty($_POST["cimy_um_import"]) ? true : false;
     105    return empty($_POST["cimy_um_import"]) ? true && !empty($send) : false;
    106106}
    107107
     
    716716
    717717            if (!empty($_POST["db_send_email_new_users"])) {
    718                     wp_new_user_notification($wp_userid, $passw, "both");
     718                $email_passw = null;
     719                if (function_exists("cimy_get_options")) {
     720                    $options = cimy_get_options();
     721                    if (!empty($options["email_include_plaintext_password"])) {
     722                        $email_passw = $passw;
     723                    }
     724                }
     725                wp_new_user_notification($wp_userid, $email_passw, "both");
    719726            }
    720727
Note: See TracChangeset for help on using the changeset viewer.