Ticket #2159 (closed defect (bug): worksforme)

Opened 6 years ago

Last modified 5 years ago

Comment Counter off again

Reported by: masquerade Owned by: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords:
Cc:

Description

The comment counter is not updated when you use mass edit mode to delete a comment. It doesn't get updated until another comment is left on that post or a comment on that post is deleted in normal mode.

From WP-Testers

Attachments

edit-comments.php.patch Download (637 bytes) - added by MikeLittle 6 years ago.
Patch to fix issue #2159
paged-comment-editing.patch Download (503 bytes) - added by zeo 6 years ago.
Paged Comment Editing Plugin patch

Change History

Patch to fix issue #2159

comment:1   ryan6 years ago

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

(In [3366]) Use API to delete comment so that counts are kept in sync. Props Mike Little. fixes #2159

  • Status changed from closed to reopened
  • Resolution fixed deleted

After upgrading from wp 1.5.2 to wp-2.0 the new version has stopped counting my comments below the posts.It only shows the old amount of comments and not the new ones that were added after upgrading.

For example if there where 4 comments before upgrade below the post the tag comments_popup_link said ; 4 comments. After upgrade it still says that there are four comments even there where new ones added.

I have uploaded the new file and made a test comment. Nothing changeed. This does not work correctly even in the adminarea (manage-post-area) only the old amount of comments shows up next to the post. But in the comment edit area the comments are really there...

But when re-editing a comment and save it agian the counter starts to work again.

Some old comment plugins like Spam Karma 2 will do this. Repeat: versions of Spam Karma 2 that haven't specifically been updated to be compatable with WP 2.0 WILL mess up your comment counts.

So was SK2 the culprit or is this still a bug?

comment:6   ryan6 years ago

  • Milestone changed from 2.0 to 2.0.1

comment:7   ryan6 years ago

I'm not seeing any comment count problems anymore. Anyone else?

zeo6 years ago

Paged Comment Editing Plugin patch

comment:8   zeo6 years ago

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

Hi,

I submitted a patch for Paged Comment Editing plugin (revision 4608).

Most of WordPress user that using Paged Comment Editing didn't aware this. I'm applying the same patch made to edit-comments.php.

  • Status changed from closed to reopened
  • Resolution fixed deleted

Comment count is still wonky in 2.02. It seems that

<h3 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?></h3>

in /themes/personal/wp-comments.php doesn't work at all.

The post management area also reports a lot too few comments; it's not a complete loss, but it's bad enough that I've changed the wp-comments.php from comments_number() to "Comments:".

I show comments on the whole blog, including the index and the various archives and categories, as well as on single posts.

Thanks, Henriette

Oops, that's themes/personal/comments.php, of course.

Works just fine here...

  • Status changed from reopened to closed
  • Resolution set to worksforme
  • Milestone 2.0.1 deleted

Closing Worksforme using the reprod steps initially reported by masquerade.

ENV: 2.1-alpha3+ (r4198)

Hetta, are you still seeing this issue? Are there additional details to the scenario? Could it related to plugins you have installed?

Note: See TracTickets for help on using tickets.