[wp-trac] [WordPress Trac] #10854: Can't post comments by XMLRPC using wp.newComment and having WP_DEBUG enabled

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 25 06:39:24 UTC 2010


#10854: Can't post comments by XMLRPC using wp.newComment and having WP_DEBUG
enabled
--------------------------+-------------------------------------------------
 Reporter:  filipegiusti  |       Owner:  josephscott
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Comments      |     Version:  2.8.4      
 Severity:  normal        |    Keywords:             
--------------------------+-------------------------------------------------
Changes (by nacin):

  * component:  XML-RPC => Comments
  * milestone:  Unassigned => 3.0


Comment:

 Looking through the code (both trunk and the 2.8.4 tag), it seems legit.

 wp_new_comment()'s $commentdata may not have comment_type set. That is
 handled by wp_insert_comment() if it is unset.

 But wp_new_comment() then uses comment_type under certain conditions in
 order to notify the postauthor.

 Looks like we should check for the comment_type index, either at that
 point, or earlier.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10854#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list