[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
Fri Dec 11 13:34:14 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                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------

Comment (by juanfra):

 @ambrosey it is recommended to always use braces:
 https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/php/#brace-style

 Nice patch!

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


More information about the wp-trac mailing list