[wp-trac] [WordPress Trac] #10816: wp_insert_post fails to add comment_count

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 19 23:36:52 UTC 2009


#10816: wp_insert_post fails to add comment_count
--------------------------+-------------------------------------------------
 Reporter:  debashish     |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:  2.8.4  
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by sivel):

  * status:  new => closed
  * severity:  critical => normal
  * priority:  high => normal
  * milestone:  Unassigned =>
  * keywords:  comment,comment count,wp_insert_post =>
  * resolution:  => invalid


Comment:

 The wp_insert_post function purposefully does not set comment_count.

 comment_count is updated for the post using the
 wp_update_comment_count_now() function.

 Closing as invalid.

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


More information about the wp-trac mailing list