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

WordPress Trac noreply at wordpress.org
Fri Feb 6 19:54: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          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 `wp_dropdown_users`, by default, shows the display name for a user.

 The function is used in `users.php` to show a list of users, so that you
 can attribute posts to someone when deleting an existing user. It should
 show the username so that the exact list shows up. I just had a situation
 trying to delete a user where I had multiple "Tom"s show up as display
 names, with no idea which to delete.

 [[Image(https://cldup.com/RSlM9jG45g.png)]]

 We can easily use the `show` parameter where `wp_dropdown_users` is used
 in `users.php` to delete a user to make this actually usable when deleting
 users.

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


More information about the wp-trac mailing list