diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index f18807cee4..270619a3ea 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -126,19 +126,21 @@ echo $role_list . '';
-display_name; ?> -nickname ?> -user_login ?> -first_name ) ) : ?> -first_name ?> - -last_name ) ) : ?> -last_name ?> - -first_name ) && !empty( $profileuser->last_name ) ) : ?> -last_name ?>">first_name." ".$profileuser->last_name ?> -first_name ?>">last_name." ".$profileuser->first_name ?> - +display_name; + $public_display[] = $profileuser->nickname; + $public_display[] = $profileuser->user_login; + $public_display[] = $profileuser->first_name; + $public_display[] = $profileuser->first_name.' '.$profileuser->last_name; + $public_display[] = $profileuser->last_name.' '.$profileuser->first_name; + $public_display = array_unique(array_filter(array_map('trim', $public_display))); + foreach($public_display as $item) { +?> + +