[wp-trac] [WordPress Trac] #58103: Show user roles when deleting users

WordPress Trac noreply at wordpress.org
Mon Jun 26 19:39:37 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 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:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list