[wp-trac] [WordPress Trac] #12104: 'moderate_comments' capability by itself should grant the user the permission to See/Edit all comments from the Comments menu.

WordPress Trac noreply at wordpress.org
Thu Aug 18 15:28:35 UTC 2016


#12104: 'moderate_comments' capability by itself should grant the user the
permission to See/Edit all comments from the Comments menu.
-------------------------------------+-----------------------------
 Reporter:  sillybean                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Comments                 |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+-----------------------------
Changes (by Kau-Boy):

 * keywords:  has-patch needs-refresh => has-patch needs-testing


Comment:

 Every time I have an issue, there is already a ticket about. And it's
 usually more than 5 years old :)

 OK, so a refesh is desired. I think I have come up with something that
 should work. I was in a similar situation as @mariusvetrici and have
 written a patch against 4.6 which works for me.

 As we have to capabilities for comments "edit_comments" and
 "moderate_comments", both should be taken into account. The menu lacks of
 the item as an optimization removed it, if a user has not the "edit_posts"
 capability, to not run the counting. I think "moderate_comments" works
 better here. So I used all three capabilities, the two comments caps and
 the old "edit_posts", so it doesn't break any old code/workaround.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12104#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list