WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#46017 new defect (bug)

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

Reported by: 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 3 months ago.
46017.patch (360 bytes) - added by itzmekhokan 3 months ago.
The "All" and "Approved" commemts counts updated values comes from edit-comments.js.

Download all attachments as: .zip

Change History (7)

@itzmekhokan
3 months ago

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

#1 @itzmekhokan
3 months ago

  • Keywords has-patch added; needs-patch removed

#2 @garrett-eclipse
3 months ago

  • Keywords needs-testing added

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


3 months ago

#4 @peterwilsoncc
3 months 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
3 months 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.