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

WordPress Trac noreply at wordpress.org
Wed Dec 14 06:01:25 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           |  Resolution:
 Keywords:  2nd-opinion      |     Focuses:
-----------------------------+------------------------------

Comment (by johnbillion):

 The fundamental problem here is that `current_user_can()` should always
 return false for a non-logged-in user, although some plugins such as
 BuddyPress check the `exist` capability against non-logged-in users.

 The logic in `wp_handle_comment_submission()` could be further abstracted
 into a separate function, but it doesn't make sense for it to be mapped to
 a capability.

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


More information about the wp-trac mailing list