Why function current_user_can_set_authors assumes ‘edit_others_posts’?
-
On the plugin script (co-authors-plus.php), line 1052, you use the following code:
$can_set_authors = isset( $current_user->allcaps['edit_others_posts'] ) ? $current_user->allcaps['edit_others_posts'] : false;
Why assume users must have ‘edit_others_posts’ capability in order to be allowed to add a co-author? Wouldn’t it be better to create a custom capability for this feature, like ‘can_add_coauthor’?
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Why function current_user_can_set_authors assumes ‘edit_others_posts’?’ is closed to new replies.