[wp-trac] [WordPress Trac] #42564: Use `promote_users` for role updates in edit_user()

WordPress Trac noreply at wordpress.org
Mon Mar 19 20:28:30 UTC 2018


#42564: Use `promote_users` for role updates in edit_user()
-----------------------------+----------------------
 Reporter:  ocean90          |       Owner:  ocean90
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  5.0
Component:  Role/Capability  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+----------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42855"]:
 {{{
 #!CommitTicketReference repository="" revision="42855"
 Users: Use `promote_users` for role updates in `edit_user()`.

 `edit_user()` can also update user roles but was still using the
 `edit_users` capability instead of the newer `promote_users` capability
 introduced in [14176].
 This makes the role handling consistent with the bulk dropdown menu for
 role changes.

 Props flixos90, johnjamesjacoby, ocean90.
 Fixes #42564.
 }}}

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


More information about the wp-trac mailing list