diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 5edf971..3067278 100644
--- a/src/wp-includes/user.php
+++ b/src/wp-includes/user.php
@@ -1612,7 +1612,7 @@ function wp_insert_user( $userdata ) {
 
 	$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));
 
-	if ( $user_nicename_check && $ID != $user_nicename_check ) {
+	if ( $user_nicename_check ) {
 		$suffix = 2;
 		while ($user_nicename_check) {
 			// user_nicename allows 50 chars. Subtract one for a hyphen, plus the length of the suffix.
