[wp-trac] [WordPress Trac] #42713: Users list does not display name if Last Name empty
WordPress Trac
noreply at wordpress.org
Tue Nov 28 22:45:42 UTC 2017
#42713: Users list does not display name if Last Name empty
--------------------------+-----------------------------
Reporter: antipole | Owner: dd32
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.0
Component: Users | Version: 4.9
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
--------------------------+-----------------------------
Comment (by dd32):
Replying to [comment:3 SergeyBiryukov]:
> Replying to [comment:2 dd32]:
> > Perhaps we should also update `wp_list_authors()` to also handle this
for the `show_fullname` parameter?
> > Currently it also only displays if both fields are set
>
> Seems intentional there, if either `first_name` or `last_name` is not
set, the name is not really "full" :)
That's fair, but everywhere else that we use the "full" name we use either
of them, accounting for the fact there's not really anything "full" about
having both.
But you're right, if `wp_list_authors()` was just showing "John" for
multiple people it'd be impossible to tell them apart. That'll probably be
fixed in the future by something like Select2 where multiple pieces of
info can be displayed at the same time.
I guess we'll skip it from `wp_list_authors()` for now and just go with
[attachment:42713.2.patch]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42713#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list