[wp-trac] [WordPress Trac] #27471: wp.newComment allows to post new comments even if they are closed or not supported

WordPress Trac noreply at wordpress.org
Fri Mar 21 14:11:23 UTC 2014


#27471: wp.newComment allows to post new comments even if they are closed or not
supported
--------------------------+------------------------------
 Reporter:  xknown        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jesin):

 This patch should do the trick, please give it a try.

 Not only `wp_xmlrpc_server::wp_newComment()` but neither
 `wp_new_comment()` nor `wp_insert_comment()` check if comments are allowed
 on a post before going ahead.

 This issue exists even on the current version, haven't checked the
 previous ones.

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


More information about the wp-trac mailing list