WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 11 months ago

#39084 new enhancement

Introduce singular capabilities for managing individual comments

Reported by: johnbillion Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Comments Keywords: needs-patch, needs-unit-tests, granular-capabilities
Focuses: Cc:

Description

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 ).

Change History (1)

#1 @flixos90
11 months ago

  • Keywords granular-capabilities added

All of these are part of a larger goal.

Note: See TracTickets for help on using tickets.