Wordpress - WordPress Settings and Configuration
What is wrong with this code that tries to add a capability to the Author role?
$role = get_role('author');
$role->add_cap('edit_others_posts');