[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 21:22:52 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:
--------------------------------------+------------------
Changes (by ambrosey):

 * keywords:  needs-patch good-first-bug => good-first-bug has-patch


Comment:

 I tried to patch this but it was unclear to me due to other
 inconsistencies in the specific file, whether it's best practice to put

 {{{
 if ( $variable ){
     do_this();
 }
 }}}

 or

 {{{
 if ( $variable )
     do_this();

 }}}

 I tried to be consistent with the file, but it uses both styles.

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


More information about the wp-trac mailing list