diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index e77abdd9df..3f3246f0d9 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -242,7 +242,7 @@ function upgrade_160() { if ( !empty( $user->user_description ) ) update_usermeta( $user->ID, 'description', $wpdb->escape($user->user_description) ); - if ( !isset( $user->user_idmode ) ): + if ( isset( $user->user_idmode ) ): $idmode = $user->user_idmode; if ($idmode == 'nickname') $id = $user->user_nickname; if ($idmode == 'login') $id = $user->user_login;