[wp-trac] [WordPress Trac] #15530: AJAX trashing of comments doesn't update on screen comment count
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 22 04:16:34 UTC 2011
#15530: AJAX trashing of comments doesn't update on screen comment count
------------------------------+-----------------------
Reporter: johnbillion | Owner: garyc40
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.1
Component: Administration | Version: 3.1
Severity: minor | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------
Comment (by markjaquith):
Maybe I'm missing something, but why does this need an AJAX call at all?
If the item disappears, decrement the appropriate comment counts locally.
And if you have comments per page and number of comments, decrement number
of comments, divide by cpp, round up, and that's your new number of total
pages. Do the opposite for undo.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15530#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list