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

WordPress Trac noreply at wordpress.org
Sat Mar 8 19:43:34 UTC 2014


#27329: js errors while moderating comments
----------------------------------------+-----------------------------
 Reporter:  avryl                       |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Comments                    |    Version:  3.8.1
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 When trashing or marking as spam in edit-comments.php:

 {{{
 [Error] Error: Syntax error, unrecognized expression: [object Object]
         error (jquery.js, line 2)
         ob (jquery.js, line 2)
         xb (jquery.js, line 2)
         db (jquery.js, line 2)
         find (jquery.js, line 2)
         init (jquery.js, line 2)
         init (jquery-migrate.js, line 225)
         n (jquery.js, line 2)
         add (wp-lists.js, line 312)
         ajaxAdd (wp-lists.js, line 83)
         (anonymous function) (wp-lists.js, line 455)
         delAfter (edit-comments.js, line 240)
         (anonymous function) (wp-lists.js, line 209)
         dequeue (jquery.js, line 3)
         (anonymous function) (jquery.js, line 3)
         each (jquery.js, line 2)
         each (jquery.js, line 2)
         queue (jquery.js, line 3)
         complete (wp-lists.js, line 207)
         j (jquery.js, line 2)
         fireWith (jquery.js, line 2)
         x (jquery.js, line 4)
         b (jquery.js, line 4)
 }}}

 Visual behaviour: the undo message has two avatars.

 When trashing, (un)approving or marking as spam in index.php:

 {{{
 [Error] TypeError: 'undefined' is not an object (evaluating
 'el.html().replace')
         getCount (edit-comments.js, line 127)
         dashboardTotals (edit-comments.js, line 118)
         delAfter (edit-comments.js, line 210)
         (anonymous function) (wp-lists.js, line 209)
         dequeue (jquery.js, line 3)
         (anonymous function) (jquery.js, line 3)
         each (jquery.js, line 2)
         each (jquery.js, line 2)
         dequeue (jquery.js, line 3)
         complete (wp-lists.js, line 210)
         j (jquery.js, line 2)
         fireWith (jquery.js, line 2)
         x (jquery.js, line 4)
         b (jquery.js, line 4)
 }}}

 Visual behaviour: comment disappears after trashing, but doesn't reappear
 after undoing it.

 Tested in trunk and 3.8.1.

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


More information about the wp-trac mailing list