Inverted logic. Should fix problem where user display name is stomped during upgrade.

git-svn-id: https://develop.svn.wordpress.org/trunk@2710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-07-14 22:53:56 +00:00
parent 5dbb58cd91
commit ffdd8033aa
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ function upgrade_160() {
if ( !empty( $user->user_description ) ) if ( !empty( $user->user_description ) )
update_usermeta( $user->ID, 'description', $wpdb->escape($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; $idmode = $user->user_idmode;
if ($idmode == 'nickname') $id = $user->user_nickname; if ($idmode == 'nickname') $id = $user->user_nickname;
if ($idmode == 'login') $id = $user->user_login; if ($idmode == 'login') $id = $user->user_login;