[wp-trac] [WordPress Trac] #32362: Comments count: wp_count_comments() should not count spam toward totals

WordPress Trac noreply at wordpress.org
Tue Sep 15 01:46:53 UTC 2015


#32362: Comments count: wp_count_comments() should not count spam toward totals
----------------------------------------+-----------------------------
 Reporter:  afercia                     |       Owner:  wonderboymusic
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  4.4
Component:  Comments                    |     Version:  4.2
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34161"]:
 {{{
 #!CommitTicketReference repository="" revision="34161"
 In `_wp_ajax_delete_comment_response()`, read the new `'all'` prop
 returned by `get_comment_count()` via `wp_count_comments()` when setting
 `$total`. `'all'` doesn't include `spam` in its count.

 Updates unit tests.

 Props dipesh.kakadiya.
 Fixes #32362.
 }}}

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


More information about the wp-trac mailing list