[wp-trac] [WordPress Trac] #41037: Comment author can't edit their comment(s) if they aren't the post author

WordPress Trac noreply at wordpress.org
Wed Jun 14 00:26:16 UTC 2017


#41037: Comment author can't edit their comment(s) if they aren't the post author
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In {{{map_meta_cap()}}}, the {{{edit_comment}}} meta capability is
 eventually mapped to {{{edit_others_posts}}} which results in comment
 authors not being able to edit their own comment(s) if their comment(s)
 are on a different user's post.

 Note 1: The issue is specific to the author role. The editor role doesn't
 see the issue because this role has the {{{edit_others_posts}}} cap.

 Note 2: The problem doesn't exist if the comment author is also the post
 author. This is because, in such cases, {{{edit_comment}}} is mapped to
 either {{{edit_published_posts}}} or {{{edit_posts}}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41037>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list