[wp-trac] [WordPress Trac] #39274: Consider a capability for posting comments

WordPress Trac noreply at wordpress.org
Wed Dec 14 05:14:02 UTC 2016


#39274: Consider a capability for posting comments
-----------------------------+-----------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Comments         |    Version:
 Severity:  normal           |   Keywords:  2nd-opinion
  Focuses:                   |
-----------------------------+-----------------------------
 The `wp_handle_comment_submission()` function currently includes a bunch
 of internal logic for concluding if a comment submission is possible given
 a number of criteria relative to:

 * The post the comment would belong to
 * Settings for the post
 * Site settings
 * Current user if logged in
 * Email address validation if logged out

 While some of this logic is relatively complex, all of it together answers
 the question: can the current user (logged in or out) comment on the
 current post. As such, I think it would make sense to consider a dedicated
 mapped meta capability to identifying whether the current user has the
 ability to post a comment.

 There may be some/many things that prevent this from being easily
 achievable, and I haven't dug too deeply into investigating what they
 might be exactly.

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


More information about the wp-trac mailing list