[wp-trac] [WordPress Trac] #42564: Use `promote_users` for role updates in edit_user()
WordPress Trac
noreply at wordpress.org
Wed Nov 15 22:26:45 UTC 2017
#42564: Use `promote_users` for role updates in edit_user()
-----------------------------+-----------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.1
Component: Role/Capability | Version:
Severity: normal | Keywords: has-patch
Focuses: |
-----------------------------+-----------------------
`edit_user()` can also update user roles but is still using the
`edit_users` capability instead of the newer `promote_users` capability
introduced in [14176].
We have a similar role handling in
https://core.trac.wordpress.org/browser/tags/4.8.3/src/wp-
admin/users.php?marks=96-97,121-128#L93 and should copy that to
`edit_user()` for consistency.
* Change `edit_users` to `promote_users`
* Change `manage_site` to `manage_network_users`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42564>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list