[wp-trac] [WordPress Trac] #34977: When updating a Comment do not call `wp_update_comment_count` if there is no related Post

WordPress Trac noreply at wordpress.org
Thu Dec 10 15:32:25 UTC 2015


#34977: When updating a Comment do not call `wp_update_comment_count` if there is
no related Post
-------------------------+-------------------------
 Reporter:  rachelbaker  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.5
Component:  Comments     |    Version:
 Severity:  normal       |   Keywords:  needs-patch
  Focuses:               |
-------------------------+-------------------------
 As a follow-up to #34954:
 In `wp_update_comment()` we are calling `wp_update_comment_count()`, but
 this is unnecessary if the `comment_post_ID` is `0`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34977>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list