WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#5315 closed defect (bug) (fixed)

Awaiting Moderation (#): # is not always updated correctly in JS

Reported by: mdawaffe Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.3.1
Component: General Keywords:
Focuses: Cc:

Description

The number in the Comments -> Awaiting Moderation subtab gets updated via JS when comments are approved, unapproved or deleted.

There are a couple of bugs, though.

When the number is updated to 0, it is removed rather than set to "0" (a jQuery oddity).

When a comment is deleted from the Comments -> Amaiting Moderation tab (rather than from the Comments -> Comments tab), the number is not changed.

Attached fixes both.

Attachments (1)

5315.diff (1.8 KB) - added by mdawaffe 6 years ago.

Download all attachments as: .zip

Change History (2)

mdawaffe6 years ago

comment:1 ryan6 years ago

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

(In [6312]) Update awaiting moderation count when comments are moderated through AJAX. Props mdawaffe. fixes #5315

Note: See TracTickets for help on using tickets.