WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 3 months ago

#10422 new defect (bug)

Answering to comment from Dashboard does not update Dashboard statistics

Reported by: honza.skypala Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.8.1
Component: Comments Keywords: 3.2-early has-patch needs-testing needs-refresh
Focuses: administration Cc:

Description

Hi there,

there is a short statistics "Right now/At a Glance" box in Dashboard, containing number of posts, pages, comments etc.

There is also a box with list of most recent comments in the Dashboard.

If a user answers to a comment in this "Recent comments" box in Dashboard, which uses AJAX, so it does not reload the whole page, it creates a new comment, but the number of comments in the "Right now" box is not updated.

I know this is not a critical bug, but it would be really nice if it works.

Take care, Honza

P.S.: As there is no "Dashboard" component in the Trac, I did not know whether to assign it to Administration or Comments component. I put it into Administration, if you think it better suits to Comments or any other component, please feel free to change it.

Attachments (2)

garyc40-10422.patch (910 bytes) - added by garyc40 3 years ago.
there's a patch for that
garyc40-10422.2.diff (916 bytes) - added by garyc40 3 years ago.
patch refreshed

Download all attachments as: .zip

Change History (10)

comment:1 honza.skypala5 years ago

Just a note - of course the complex solution would update the statistics in the "Right now" box also for other actions on comments taken in Dashboard, like deleting a comment.

comment:2 dd325 years ago

  • Milestone changed from Unassigned to Future Release

Theres something similar for other counts such as plugin update count not changing upon updating, and comment count not changing upon spamming/deleting from the dashboard.

Maybe a new function that inserts inline JS into Ajax responses about number-changes would be possible.. just a thought there.

comment:3 johnbillion5 years ago

Same thing applies when you create new posts/drafts with the QuickPress box on the dashboard.

comment:4 ocean904 years ago

Related: #13820

garyc403 years ago

there's a patch for that

comment:5 garyc403 years ago

  • Keywords has-patch needs-testing added; Dahsboard comments statistics removed

garyc403 years ago

patch refreshed

comment:6 garyc403 years ago

  • Keywords 3.2-early added

comment:7 MikeHansenMe19 months ago

  • Keywords needs-refresh added

comment:8 ocean903 months ago

  • Component changed from Administration to Comments
  • Focuses administration added
Note: See TracTickets for help on using tickets.