Opened 15 years ago
Closed 10 years ago
#12914 closed enhancement (invalid)
Update the Right Now box when publishing via QuickDraft
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Administration | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
When you publish a new post via QuickPress, it'd be cool for the Right Now box to then ++ the number of published posts.
Quick proof of concept patch attached.
Attachments (1)
Change History (8)
#2
@
15 years ago
There's already inline JavaScript in the markup printed by that widget. Why not add some more and have it update the post count with the actual number as determined by number_format_i18n()
?
And may as well give those count wrappers some ids instead of a particular response message. Then it's really simple:
var pCount = document.getElementById('post-count-link'); if ( pCount ) pCount.innerHTML = '<?php echo esc_js( number_format_i18n( wp_count_posts( 'post' ) ) ); ?>';
#3
@
15 years ago
There's already inline JavaScript in the markup printed by that widget. Why not add some more and have it update the post count with the actual number as determined by number_format_i18n()?
Sounds like a good idea to me. And yeah, we'd need to supply an ID. Hence why I insulted my selector. (Patch was just a quick POC.)
#4
@
15 years ago
- Keywords has-patch needs-refresh added
- Milestone changed from Awaiting Triage to 3.1
- Priority changed from normal to lowest
- Severity changed from normal to trivial
Patch here, but it needs an update. Also if QuickPress is changed in the 3.1 cycle then we will need to take that/this into account.
#5
@
14 years ago
- Milestone changed from 3.1 to Future Release
- Version set to 3.0
Punting as we are entering beta. Can reconsider with 3.2 and updated patch.
#7
@
10 years ago
- Keywords needs-refresh removed
- Milestone Future Release deleted
- Priority changed from lowest to normal
- Resolution set to invalid
- Severity changed from trivial to normal
- Status changed from new to closed
- Summary changed from Update the Right Now box when publishing via QuickPress to Update the Right Now box when publishing via QuickDraft
This is now QuickDraft. As such the RightNow only counts published posts not draft ones. Therefore it works as intended now. Closing as invalid
Other thoughts: