WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 6 years ago

#10422 closed defect (bug) (fixed)

Answering to comment from Dashboard does not update Dashboard statistics

Reported by: honza.skypala Owned by: wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.8.1
Component: Comments Keywords: has-patch
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 10 years ago.
there's a patch for that
garyc40-10422.2.diff (916 bytes) - added by garyc40 10 years ago.
patch refreshed

Download all attachments as: .zip

Change History (12)

#1 @honza.skypala
12 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.

#2 @dd32
12 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.

#3 @johnbillion
12 years ago

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

#4 @ocean90
11 years ago

Related: #13820

@garyc40
10 years ago

there's a patch for that

#5 @garyc40
10 years ago

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

@garyc40
10 years ago

patch refreshed

#6 @garyc40
10 years ago

  • Keywords 3.2-early added

#7 @MikeHansenMe
9 years ago

  • Keywords needs-refresh added

#8 @ocean90
7 years ago

  • Component changed from Administration to Comments
  • Focuses administration added

#9 @wonderboymusic
6 years ago

  • Keywords 3.2-early needs-testing needs-refresh removed
  • Milestone changed from Future Release to 4.4
  • Owner set to wonderboymusic
  • Status changed from new to assigned

#10 @wonderboymusic
6 years ago

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

In 34500:

Comments: update Comment counts dynamically in the Right Now widget based on moderation actions in the Activity widget.

Fixes #10422.

Note: See TracTickets for help on using tickets.