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. Built from https://develop.svn.wordpress.org/trunk@59901 git-svn-id: http://core.svn.wordpress.org/trunk@59243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
34 KiB
34 KiB