Make WordPress Core

Opened 19 years ago

Closed 18 years ago

#2159 closed defect (bug) (worksforme)

Comment Counter off again

Reported by: masquerade's profile masquerade Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords:
Focuses: 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 (2)

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

Download all attachments as: .zip

Change History (14)

@MikeLittle
19 years ago

Patch to fix issue #2159

#1 @ryan
19 years ago

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

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

#2 @mazalien
19 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

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.

#3 @mazalien
19 years ago

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.

#4 @markjaquith
19 years ago

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.

#5 @davidhouse
19 years ago

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

#6 @ryan
19 years ago

  • Milestone changed from 2.0 to 2.0.1

#7 @ryan
19 years ago

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

@zeo
19 years ago

Paged Comment Editing Plugin patch

#8 @zeo
19 years ago

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

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.

#9 @Hetta
19 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

#10 @Hetta
19 years ago

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

#11 @Viper007Bond
19 years ago

Works just fine here...

#12 @foolswisdom
18 years ago

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

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.