diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 5edf971..3067278 100644
a
|
b
|
function wp_insert_user( $userdata ) { |
1612 | 1612 | |
1613 | 1613 | $user_nicename_check = $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->users WHERE user_nicename = %s AND user_login != %s LIMIT 1" , $user_nicename, $user_login)); |
1614 | 1614 | |
1615 | | if ( $user_nicename_check && $ID != $user_nicename_check ) { |
| 1615 | if ( $user_nicename_check ) { |
1616 | 1616 | $suffix = 2; |
1617 | 1617 | while ($user_nicename_check) { |
1618 | 1618 | // user_nicename allows 50 chars. Subtract one for a hyphen, plus the length of the suffix. |