[wp-trac] [WordPress Trac] #61100: Fix capability error in bulk role removal when editing site users in network admin
WordPress Trac
noreply at wordpress.org
Sun Oct 19 17:19:11 UTC 2025
#61100: Fix capability error in bulk role removal when editing site users in
network admin
-------------------------------------+-------------------------------------
Reporter: ignatiusjeroe | Owner: johnjamesjacoby
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Networks and Sites | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-test-info needs- | Focuses: administration,
refresh dev-feedback | multisite
-------------------------------------+-------------------------------------
Changes (by johnjamesjacoby):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"60976" 60976]:
{{{
#!CommitTicketReference repository="" revision="60976"
Networks and Sites: prevent a PHP error in `wp-admin/network/site-
users.php`.
This change brings the multisite specific `promote` user action up-to-
speed with the single-site one, by adding:
* capability checks where appropriate
* a `none` check on `$role` to set it to an empty string
It also updates the inline documentation of the single-site `promote` user
action in `users.php`, to match the suggested additions to the multisite
file.
Props ignatiusjeroe, jeremyfelt, johnjamesjacoby, pratiklondhe, shanemuir,
sudipatel007, techpartho.
Fixes #61100.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61100#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list