[wp-trac] [WordPress Trac] #31251: Show username in wp_dropdown_users when deleting users, not display name

WordPress Trac noreply at wordpress.org
Sun Dec 6 20:56:14 UTC 2015


#31251: Show username in wp_dropdown_users when deleting users, not display name
-------------------------+-----------------------------
 Reporter:  krogsgard    |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Future Release
Component:  Users        |     Version:  4.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  administration
-------------------------+-----------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35790"]:
 {{{
 #!CommitTicketReference repository="" revision="35790"
 Show user_login in Dashboard user dropdowns.

 User dropdowns in wp-admin have traditionally shown the users' display
 names.
 However, this causes ambiguity when users share display names. To correct
 this,
 we now show the unique user_login in parentheses after the display name.

 The new `display_name_with_login` value for the `show` parameter of
 `wp_dropdown_users()` enables this functionality. The default value of
 `show`
 has not been changed, for backward compatibility, but all instances of
 `wp_dropdown_users()` in core wp-admin have been switched.

 This changeset also reduces some duplicated logic when assembling a user
 list
 when `include_selected` is true.

 Props krogsgard, boonebgorges.
 Fixes #31251.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31251#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list