Ticket #1930 (closed defect (bug): fixed)
upgrade code counts spam and moderated when setting comment_count column
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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
Change History
markjaquith — 6 years ago
-
attachment
comment_count_upgrade.diff
added
comment:1
markjaquith — 6 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
comment:2
masquerade — 6 years ago
1
- Status changed from assigned to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

patch for WP 2.0 SVN