[wp-trac] [WordPress Trac] #32617: After adding the 'edit_posts' capability to 'subscriber' and turning off, the added role still remains
WordPress Trac
noreply at wordpress.org
Thu Jun 11 19:01:05 UTC 2015
#32617: After adding the 'edit_posts' capability to 'subscriber' and turning off,
the added role still remains
-----------------------------+-----------------------------
Reporter: DJviolin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 4.2.2
Severity: normal | Keywords:
Focuses: administration |
-----------------------------+-----------------------------
{{{
// Add capabilities to "subscriber" user role
add_action('admin_init', 'subscriber_role_upload_files');
function subscriber_role_upload_files() {
$role = get_role('subscriber');
$role->add_cap('upload_files');
//$role->add_cap('edit_posts');
}
}}}
After adding the 'edit_posts' capability to 'subscriber' user role and
turning off, the added role still remains. This code presented in a child
functions.php file.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list