[wp-trac] [WordPress Trac] #39084: Introduce singular capabilities for managing individual comments

WordPress Trac noreply at wordpress.org
Sun Dec 4 22:14:52 UTC 2016


#39084: Introduce singular capabilities for managing individual comments
-------------------------+------------------------------------------
 Reporter:  johnbillion  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Future Release
Component:  Comments     |    Version:
 Severity:  normal       |   Keywords:  needs-patch needs-unit-tests
  Focuses:               |
-------------------------+------------------------------------------
 As we did in #35614 for taxonomy terms, singular capabilities should be
 introduced for approving, unapproving, spamming, unspamming, editing, and
 deleting individual comments.

 This would allow fine-grained cap checks such as current_user_can(
 'edit_comment', $comment_id ) and current_user_can( 'approve_comment',
 $comment_id ).

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


More information about the wp-trac mailing list