- register action;

This commit is contained in:
nikitasinelnikov
2019-01-28 15:26:26 +02:00
parent 1cbae95419
commit 33eb54a3e3
2 changed files with 9 additions and 2 deletions
+6 -2
View File
@@ -309,10 +309,14 @@ function um_submit_form_register( $args ) {
// if full name exists
$count = 1;
while ( username_exists( $user_login ) ) {
$user_login .= $count;
$temp_user_login = $user_login;
while ( username_exists( $temp_user_login ) ) {
$temp_user_login = $user_login . $count;
$count++;
}
if ( $temp_user_login !== $user_login ) {
$user_login = $temp_user_login;
}
}
if ( ! isset( $user_login ) && isset( $user_email ) && $user_email ) {
+3
View File
@@ -144,6 +144,9 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
- Fixed fields labels on member directory
- Fixed profile form cover photo ratio value
- Fixed profile and registration form default field's values
- Fixed member directory notices with disabled metadata
- Fixed textarea profile field formatting
- Fixed registration without username field
= 2.0.38: January 10, 2019 =