• Using Register Plus 3.5.1

    I have noticed a bug in the current release of Register Plus. Whenever a new user is created from the dashboard by an admin, the password entered into the new user form is ingored, and a random password is always generated.

    I believe there is a bug in register-plus.php that checks for a new user password from a form on wp-admin/users.php but not wp-admin/user-new.php. I believe that this needs to be updated for WordPress 2.7. I have made the following changes to my copy of register-plus.php.

    On line 1739 I have changed

    global $wpdb, $register_plus;

    to

    global $wpdb, $wp_version, $register_plus;

    and on line 1744 I have changed

    $admin = trailingslashit( get_option('siteurl') ) . 'wp-admin/users.php';

    to

    if ( strpos($wp_version, '2.7') !== false )
    	$admin = trailingslashit( get_option('siteurl') ) . 'wp-admin/user-new.php';
    else
    	$admin = trailingslashit( get_option('siteurl') ) . 'wp-admin/users.php';

    I am not sure if this is the correct solution to the problem or not, but it seems to be working for now. If anyone has a better solution, please let me know.

The topic ‘[Plugin: Register Plus] Random password generated for new users created at wp-admin/user-new.php’ is closed to new replies.