Inverted logic. Should fix problem where user display name is stomped during upgrade.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
02523f59d3
commit
04a3dc4c03
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue