[wp-trac] [WordPress Trac] #16365: Comment transition for new comments

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 24 21:10:22 UTC 2011


#16365: Comment transition for new comments
-------------------------------------+------------------------------
 Reporter:  MattyRob                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Comments                 |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by MattyRob):

 * keywords:   => has-patch needs-testing


Comment:

 I think my attached patch will accomplish this. It adds to the
 wp_new_comment() function in the wp-includes/comment.php file.

 It needs to cast the $commentdata array as an object to ensure the
 transition function works as expected. There may be a more elegant way of
 doing this but I've tested this patch and it works on my testing platform.

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


More information about the wp-trac mailing list