[wp-trac] [WordPress Trac] #31251: Show username in wp_dropdown_users when deleting users, not display name
WordPress Trac
noreply at wordpress.org
Mon Feb 9 20:18:53 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
-----------------------------------+-----------------------------
Changes (by boonebgorges):
* keywords: has-patch => has-patch 2nd-opinion
Comment:
krogsgard's [attachment:31251.patch] includes unit tests and inline docs.
The patch looks good if we're agreed that we want to change the default
behavior of 'show'. Passing `show=display_name` will work as before, but
omitting 'show' (which covers 99% of the cases I've seen) will now show
the new format `Display Name (user_login)`. A scan of the plugins
directory shows that dozens and dozens of plugins are using
`wp_dropdown_users()` with the default value of 'show', and many appear to
be using it on the front-end.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31251#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list