WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#16800 closed defect (bug) (duplicate)

Number of comments in dashboard is not the same as that on articles

Reported by: pykko Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: General Keywords:
Focuses: Cc:

Description

I'm using Wordpress 3.1 on a self hosted website.

On a particular post I compared the number of comments that appear in Dashboard (after clicking "show more comments" till the end) with the real number shown on that post.

To my stupefaction, the number shown in dashboard is smaller. I have 49 comments on my article, and dashboard on that article shows only 35.

I think this is a bug. Can you investigate and fix ?

Attachments (1)

16800.diff (353 bytes) - added by greuben 4 years ago.

Download all attachments as: .zip

Change History (17)

comment:1 @kapeels4 years ago

  • Cc kapeel.sable@… added
  • Keywords reporter-feedback added

Can you post some screenshots? Would be more helpful.

@greuben4 years ago

comment:2 @greuben4 years ago

  • Keywords has-patch added; needs-patch reporter-feedback removed

Yes there is difference between number of comments shown in edit posts screen and number of actual comments.

comment:3 @greuben4 years ago

  • Severity changed from major to minor

comment:4 @pykko4 years ago

  • Severity changed from minor to normal

So, is this going to be changed? It is definetely a bug.

comment:5 @garyc404 years ago

I'm sorry but I don't understand what Dashboard you're referring to here.

If it's the admin panel dashboard, clicking "View All" will take you to wp-admin/edit-comments. There's no "Show more comments" button there.

Are you referring to the Comment meta box inside Add / Edit Post page?

comment:6 @garyc404 years ago

  • Keywords ux-feedback added
  • Resolution set to worksforme
  • Status changed from new to closed

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.
  1. 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.
  1. 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.
  1. 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.

comment:7 @pykko4 years ago

  • Resolution worksforme deleted
  • Severity changed from normal to major
  • Status changed from closed to reopened

@garyc40: There is a bug and perhaps I wasn't able to explain it properly.

I reffer to comments displayed in comment metabox when I edit a post. There is a "show more comments" button there. I am not reffering to pingbacks, but to user posted comments.

Specifically, I organized a contest and users were supposed to post comments to my article. Then I selected them using the comment metabox shown when I edit a post. Many comments were not show there. They were all approved and shown on the main page and article.

Can someone look into this?

comment:8 follow-ups: @pykko4 years ago

I think I've found the issue myself as garyc40 unprofessional way of treating my ticket is... no comment.

It's all related to Settings > Discussions > Break comments into pages with X top level comments per page...
If you set here 40 comments, the comment metabox when editing a post, shows only 40 comments.
If you set 60, it will show only 60 and so on.

comment:9 in reply to: ↑ 8 @garyc404 years ago

Replying to pykko:

I think I've found the issue myself as garyc40 unprofessional way of treating my ticket is... no comment.

Don't understand what you mean by "unprofessional".

While I look further into this issue, you can use wp-admin/edit-comments.php?p={ID}. For example, if you want to view all comments on a post with ID 39, go to wp-admin/edit-comments?p=39. Hope this helps.

What plugins and theme are you using?

It would save us some time if you could confirm whether custom plugins are causing this problem by setting up a spanking new installation of WordPress, then import your posts and comments to that installation without installing any custom plugins and theme.

comment:10 in reply to: ↑ 8 @garyc404 years ago

Replying to pykko:

It's all related to Settings > Discussions > Break comments into pages with X top level comments per page...
If you set here 40 comments, the comment metabox when editing a post, shows only 40 comments.
If you set 60, it will show only 60 and so on.

I have it set to 10 comments in my installation. Comment meta box works as expected, though (if I keep clicking Show more comments, all of them show up, not only 10).

comment:11 @garyc404 years ago

  • Keywords reporter-feedback added; has-patch removed

By the way, greuben's patch does not address the issue described by the reporter.

comment:12 @greuben4 years ago

  • Keywords close added
  • Severity changed from major to normal

@pykko See #15998, we have hard coded 10 in comments meta box in edit post screen.

@garyc40, the bug is only partial number of comments are shown in edit post screen but as you've said its not what the reporter addressed.

comment:13 @MattyRob4 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed by [17168]

comment:14 @ocean904 years ago

  • Keywords reporter-feedback ux-feedback close removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:15 @ocean904 years ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

Only the right status.

#15998

comment:16 @SergeyBiryukov4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.