Opened 9 years ago
Closed 9 years ago
#33414 closed enhancement (fixed)
Add pending count to HTML title on pending comments page
Reported by: | peterwilsoncc | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | has-patch commit |
Focuses: | javascript, administration | Cc: |
Description
On the comments page in the dashboard, add the pending comments count to the HTML title similar to Gmail's new mail count, the Twitter notifications page amongst others.
The count would update as new comments come in should an admin have the page open.
Attachments (6)
Change History (21)
#1
follow-up:
↓ 2
@
9 years ago
- Milestone changed from Awaiting Review to Future Release
- Priority changed from normal to low
#2
in reply to:
↑ 1
@
9 years ago
- Owner set to peterwilsoncc
- Status changed from new to assigned
Replying to rachelbaker:
@peterwilsoncc Would you be able to take a stab at a patch to help move this ticket along?
Sure, will do.
#3
@
9 years ago
I wrote a little patch that will add the number to the title. It will only do it in HTML, not yet in JS (working on it).
This patch was provided by the #wcnkpg Contributor Day.
#4
@
9 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Future Release to 4.4
- Owner changed from peterwilsoncc to wonderboymusic
#5
@
9 years ago
33414.2.diff adds the JS to dynamically update the title with proper l10n
#7
@
9 years ago
@wonderboymusic thanks very much for this :) see ticket:19903#comment:10. Also, I'd suggest to have a look at #32362 for 4.4 :)
#8
@
9 years ago
Wow @wonderboymusic that looks like a pretty good solution. I haven't been able to finish my JS patch yesterday, but your look better anyways :)
#9
@
9 years ago
33414.4.diff updates the patch to use wp_count_comments()
. It returns comments awaiting moderation on a property called moderated
? Why is this code so weird?
#12
@
9 years ago
- Keywords needs-patch added; has-patch removed
- Priority changed from low to normal
- Resolution fixed deleted
- Status changed from closed to reopened
Cool feature, but why is it only available for English? :-)
#13
@
9 years ago
- Keywords has-patch added; needs-patch removed
@wonderboymusic Please take a look at 33414.6.diff.
@peterwilsoncc This would be a nice small change that would delight moderators for site that receive frequent comments. Would you be able to take a stab at a patch to help move this ticket along?