[wp-trac] [WordPress Trac] #58103: Show user roles when deleting users
WordPress Trac
noreply at wordpress.org
Mon Jun 26 19:49:54 UTC 2023
#58103: Show user roles when deleting users
-----------------------------------------+------------------------
Reporter: Presskopp | Owner: audrasjb
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 6.3
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch changes-requested | Focuses:
-----------------------------------------+------------------------
Comment (by madejtax):
Here is the change as they say commented
https://github.com/WordPress/wordpress-
develop/pull/4703/commits/8f4b16a82833fd8ce83057ac3b175a41fd2a33e2
Replying to [comment:20 audrasjb]:
> Hey thanks for updating the patch @madejtax!
>
> As there is not much time before 6.3 beta 1 I'd recommend to simplify
the patch and to keep it as close as possible to the current behavior.
>
> Here is what I suggest:
>
> "Display Name (username) - administrator"
>
> `echo '<option value="' . esc_attr( $user->ID ) . '">' . esc_html(
$user->display_name ) . ' (' . esc_html( $user->user_login ) . ') - ' .
esc_html( $user->roles[0] ) . '</option>';`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58103#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list