WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #12104, comment 34


Ignore:
Timestamp:
08/18/2016 03:34:34 PM (3 years ago)
Author:
Kau-Boy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12104, comment 34

    initial v1  
    33OK, 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.
    44
    5 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.
     5As we have two 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.