Ticket #1930 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 2 years ago

upgrade code counts spam and moderated when setting comment_count column

Reported by: markjaquith Assigned to: markjaquith
Priority: normal Milestone:
Component: Administration Version: 1.6
Severity: major Keywords: bg|has-patch bg|commit
Cc:

Description

When the upgrade code iterates through the posts and sets the comment_count value, it neglects to restrict the value to approved comments ( comment_approved = '1').

Patch fixes it. Also note #1920 for a related bug (comment_count being set incorrectly when comments are submitted, which could perpetuate errors made during the upgrade).

Attachments

comment_count_upgrade.diff (0.7 kB) - added by markjaquith on 11/21/05 11:07:43.
patch for WP 2.0 SVN

Change History

11/21/05 11:07:43 changed by markjaquith

  • attachment comment_count_upgrade.diff added.

patch for WP 2.0 SVN

11/21/05 11:08:00 changed by markjaquith

  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.

11/21/05 17:27:22 changed by masquerade

1

11/22/05 03:40:33 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [3192]) Count only approved comments. Props Mark JAquith. fixes #1930

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 2.0 deleted