[wp-trac] [WordPress Trac] #14809: comments_by_type doesn't always get reset

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 27 07:30:26 UTC 2011


#14809: comments_by_type doesn't always get reset
-------------------------------+-----------------------------
 Reporter:  nmassey            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Comments           |     Version:  3.0.1
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------------
Changes (by solarissmoke):

 * keywords:  needs-patch => reporter-feedback


Comment:

 I'm a bit confused here - if you were using `get_comments()` for each post
 and then supplying those as an argument to `wp_list_comments()`, the lines
 of code containing `$wp_query->comments_by_type` would never be invoked -
 they only get used if you don't supply your own list of comments.

 Could you post the code you're using for `get_comments()` and
 `wp_list_comments()` in the loop?

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


More information about the wp-trac mailing list