[wp-trac] [WordPress Trac] #31251: Show username in wp_dropdown_users when deleting users, not display name
WordPress Trac
noreply at wordpress.org
Thu Feb 19 12:56:28 UTC 2015
#31251: Show username in wp_dropdown_users when deleting users, not display name
-----------------------------------+-----------------------------
Reporter: krogsgard | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Users | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: administration
-----------------------------------+-----------------------------
Comment (by boonebgorges):
Replying to [comment:14 krogsgard]:
> I need name feedback on a revised patch. I'm changing it to not change
the default `show` value for `wp_dropdown_users()`, but instead to add a
param that is "display_name (username)".
>
> I don't know what to call it. It's not really "all" but it is more...
Any feedback of what other parts of core do for something like this?
I can't think of another place where this kind of thing is offered. I also
can't think of a very beautiful name. Maybe 'display_name_with_login'?
Aside from the general unpleasantness of adding such an ugly parameter
name, I'm worried about l11n. Are we reasonably sure that `Display Name
(user_login)` makes sense in all languages? Perhaps we need a
parameterized string that gets run through `_x()`: `$format = _x( '%1$s
(%2$s)', 'user dropdown display name with user login format' );`? If the
format were translation-friendly, I would feel a bit better about the fact
that we're not introducing full tokenized format templates.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31251#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list