#42564 closed defect (bug) (fixed)
Use `promote_users` for role updates in edit_user()
| Reported by: | ocean90 | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Role/Capability | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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_userstopromote_users - Change
manage_sitetomanage_network_users
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Also props to @jjj and @flixos90