[wp-trac] [WordPress Trac] #43251: editable_roles filter doesn't exclude role on multisite
WordPress Trac
noreply at wordpress.org
Sun Mar 2 23:34:12 UTC 2025
#43251: editable_roles filter doesn't exclude role on multisite
---------------------------------------------+----------------------------
Reporter: eArtboard | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8
Component: Users | Version: 2.8
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: multisite
---------------------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"59901" 59901]:
{{{
#!CommitTicketReference repository="" revision="59901"
Users: Use `editable_roles` filter for multisite sub-sites.
Adds a check of the `editable_roles` filter when adding users to a
multisite sub-site to ensure the role is permitted to be used on the
network. If the role is blocked by the filter, attempting to add the role
will trigger a `wp_die()` similar to attempting to add a user with the
role on a single site install.
Props eartboard, hareesh-pillai, ideag, sukhendu2002, spacedmonkey,
thomaswm.
Fixes #43251.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43251#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list