[wp-trac] [WordPress Trac] #31251: Show username in wp_dropdown_users when deleting users, not display name
WordPress Trac
noreply at wordpress.org
Sat Feb 7 00:03:21 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: Awaiting Review
Component: Users | Version: 4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
--------------------------+------------------------------
Comment (by krogsgard):
Winging it a little bit, but from what I can tell, changing `show` to `''`
and then adding `display_name` to the fields to return in `get_users`
doesn't have any repercussions in core. And then, if someone has specified
what to show in their usage of `wp_dropdown_users`, it'll still operate
that way. But if they don't, it'll show the display name with the username
in parenthesis.
One small potential downside is if it's used on the front-end and they
don't want the username to show... but that's pretty mild in my opinion.
Usernames are easy to find and not worth obfuscating.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31251#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list