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:
parent
5dbb58cd91
commit
ffdd8033aa
@ -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
Block a user