• Resolved mabho

    (@mabho)


    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

    • This topic was modified 6 years, 10 months ago by mabho.
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.