[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
Thu Mar 27 06:00:21 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:  3.8.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:  has-patch => has-patch reporter-feedback
 * version:  trunk => 3.8.1


Comment:

 The correct workflow may be to retrieve details about the post first,
 including `comment_status`, via `wp.getPost` and then make the call with a
 comment if comments are open. Anonymous comments are disabled by default
 in `wp.newComment`. I think having the XMLRPC call match the current
 behavior in `wp_new_comment()` is expected.

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


More information about the wp-trac mailing list