[wp-trac] [WordPress Trac] #27329: js errors while moderating comments

WordPress Trac noreply at wordpress.org
Sun Mar 9 09:50:08 UTC 2014


#27329: js errors while moderating comments
--------------------------+-----------------------------------------
 Reporter:  avryl         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  Comments      |     Version:  3.8.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by SergeyBiryukov):

 So, the `dashboardTotals()` function is broken since [26144].

 I'd suggest removing it completely, as it can show "1 Comments" or "2
 Comment", and we can't properly localize this (as previously noted in
 #18809). We still have live-updating counts at the bottom of the Activity
 meta box, and they work fine.

 [attachment:27329.patch] fixes the dashboard issue for me.

 The Edit Comments screen issue appears to be caused by `wpList.add()` in
 lines 239 and 282:
 [source:tags/3.8.1/src/wp-admin/js/edit-comments.js#L239]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27329#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list