[wp-trac] [WordPress Trac] #14274: ++ instead of -- on comment total count after edit

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 12 02:27:43 UTC 2010


#14274: ++ instead of -- on comment total count after edit
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  lowest        |   Milestone:  3.1        
Component:  Comments      |     Version:             
 Severity:  trivial       |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 When moderating a comment that removes it from the screen, the total page
 count, i.e. 1-20 of 67, goes up (68) instead of down (66).

 The issue is updateCount() in edit-comments.dev.js, which sets n to n + n1
 before returning n. n - n1 is correct, but I think only for this instance
 of updateCount(), the rest need +. Still looking though.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14274>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list