[wp-trac] [WordPress Trac] #40162: Don't alter the order of roles in the Role dropdown when editing a user

WordPress Trac noreply at wordpress.org
Wed Mar 15 18:03:13 UTC 2017


#40162: Don't alter the order of roles in the Role dropdown when editing a user
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Users                                |  Review
 Severity:  normal                               |     Version:
 Keywords:  needs-patch ux-feedback has-         |  Resolution:
  screenshots good-first-bug                     |     Focuses:
                                                 |  administration
-------------------------------------------------+-------------------------

Comment (by lukecavanagh):

 Seems like that is defined here.
 https://github.com/WordPress/WordPress/blob/master/wp-admin/user-
 edit.php#L363

 Using this function.
 https://developer.wordpress.org/reference/functions/wp_dropdown_roles/

 So default user roles in core hierarchy would be the following then?

 https://codex.wordpress.org/Roles_and_Capabilities#Summary_of_Roles

 '''Super Admin
 Administrator
 Editor
 Author
 Contributor
 Subscriber'''

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


More information about the wp-trac mailing list