Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#46017 new defect (bug)

"Mine" comment count isn't updated when replying to or moderating a comment.

Reported by: pento's profile pento Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.1
Component: Comments Keywords: needs-testing needs-refresh has-patch
Focuses: administration Cc:

Description

To reproduce:

  • Visit /wp-admin/edit-comments.php.
  • Click Reply on a comment.
  • Type some text in the comment, click Reply.

The "All" and "Approved" counts update as expected, but the "Mine" count doesn't.

Attachments (2)

edit-comments.diff (360 bytes) - added by itzmekhokan 5 years ago.
46017.patch (360 bytes) - added by itzmekhokan 5 years ago.
The "All" and "Approved" commemts counts updated values comes from edit-comments.js.

Download all attachments as: .zip

Change History (7)

@itzmekhokan
5 years ago

The "All" and "Approved" commemts counts updated values comes from edit-comments.js.

#1 @itzmekhokan
5 years ago

  • Keywords has-patch added; needs-patch removed

#2 @garrett-eclipse
5 years ago

  • Keywords needs-testing added

This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.


5 years ago

#4 @peterwilsoncc
5 years ago

  • Keywords needs-refresh added

The same bug occurs when a user changes the status (un/approve, trash or spam) of their own comment in via the actions.

As the bug is more than a quick fix, I'm inclined to move it off 5.1 for a later release.

@itzmekhokan your patch works as expected for a reply but misses the other actions. Do you think you'll be able to work on an update? It's no problem if you don't have time.

#5 @peterwilsoncc
5 years ago

  • Milestone changed from 5.1 to Future Release
  • Summary changed from "Mine" comment count isn't updated when adding a comment. to "Mine" comment count isn't updated when replying to or moderating a comment.

Dropping this off the milestone, as noted above this occurs for all actions that should modify the "mine" count.

The fix may require modifications to the ajax responses/additional data- attributes in the comment list table.

Note: See TracTickets for help on using tickets.