[wp-trac] [WordPress Trac] #16800: Number of comments in dashboard is not the same as that on articles

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 10 08:38:57 UTC 2011

#16800: Number of comments in dashboard is not the same as that on articles
 Reporter:  pykko                  |       Owner:
     Type:  defect (bug)           |      Status:  closed
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  General                |     Version:  3.1
 Severity:  normal                 |  Resolution:  worksforme
 Keywords:  has-patch ux-feedback  |
Changes (by garyc40):

 * keywords:  has-patch => has-patch ux-feedback
 * status:  new => closed
 * resolution:   => worksforme


 After some investigation:

 1. The comments displayed in Comment metabox when you create or edit a
 post do NOT include pingbacks, which explains why if you count the
 comments there and compare the total comments you find by clicking the
 comment bubble in `wp-admin/edit-comments.php`, the numbers won't match.

 2. In `wp-admin/edit-comments.php`, the number displayed inside the
 bubbles is not the total number of comments, but the number of approved
 comments. This number is pulled from `comment_count` column inside
 `wp_posts` table.

 3. The title attribute of the comment bubble says "xxx pending", so there
 could be some confusion for users who don't know exactly what the number
 inside the comment bubble represents.

 4. Clicking the bubbles redirect you to a list of comments of the
 corresponding post. This list displays all comments, instead of just
 approved ones, so the total count in this list table is the total number
 of comments (both approved and pending, including pingbacks).

 Now there's no bug here. But I think it would be nice if we could do
 something about point 2, 3 and 4. It's not made entirely clear that the
 number inside the bubble is that of approved comments.

 Anyways, closing this ticket as worksforme. If the point above about the
 comment bubble is worth considering, another ticket should be opened.

Ticket URL: <http://core.trac.wordpress.org/ticket/16800#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list