WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#4245 closed defect (bug) (fixed)

Moderating comments via AJAX doesn't update visible count

Reported by: matt Owned by: mdawaffe
Milestone: 2.5 Priority: high
Severity: normal Version: 2.2
Component: Administration Keywords: ajax comments has-patch commit
Focuses: Cc:

Description

Steps to recreate:

  1. Go to Manage.
  2. Click on the # comments link in the posts table.
  3. Use the slick AJAX stuff under a comment to approve/unapprove stuff.

There is a single-item table above the comments that also shows the # of approved comments again. This should update when you change the status of a comment, much like it does on the edit-comments.php page.

Attachments (1)

4245.diff (1.5 KB) - added by mdawaffe 7 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 @foolswisdom8 years ago

  • Milestone changed from 2.3 to 2.4 (next)

comment:2 @markjaquith8 years ago

  • Summary changed from Moderating comments doesn't update count to Moderating comments via AJAX doesn't update visible count

Updating the title, as it sounded more severe than it is.

comment:3 @spencerp7 years ago

"There is a single-item table above the comments that also shows the # of approved comments again."

I just tried doing this, I "Unapproved" my own comment once, and it's showing it's being moderated for approval. However! I do NOT see this "single-item table above the comments" thing. Also, the #3 comment count didn't change to #2 in the comment count for the post comment count section thing either... Or is THAT what you were originally talking about?

comment:4 @westi7 years ago

  • Priority changed from low to high
  • Severity changed from minor to major
  • Type changed from enhancement to defect

This works for me on the main Comments Tab but not on the Awaiting Moderation tab.

On the Comments Tab it is a big slow to update but does work.

comment:5 @lloydbudd7 years ago

  • Severity changed from major to normal

@mdawaffe7 years ago

comment:6 @mdawaffe7 years ago

  • Keywords has-patch commit added
  • Status changed from new to assigned

4245.diff

comment:7 @ryan7 years ago

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

(In [7075]) Fix AJAX comment moderation on edit post view. Props mdawaffe. fixes #4245

Note: See TracTickets for help on using tickets.