[wp-trac] [WordPress Trac] #9603: Orphaned code and markup in Recent Comments dashboard widget

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 21 05:32:12 GMT 2009


#9603: Orphaned code and markup in Recent Comments dashboard widget
----------------------------+-----------------------------------------------
 Reporter:  coffee2code     |       Owner:  anonymous
     Type:  enhancement     |      Status:  new      
 Priority:  low             |   Milestone:  2.8      
Component:  Administration  |     Version:  2.8      
 Severity:  minor           |    Keywords:           
----------------------------+-----------------------------------------------
 Attached is a patch in which I've removed a div and its content (markup +
 code) that were being output for each comment listed in the "Recent
 Comments" admin dashboard widget.  The output is being produced at the end
 of `_wp_dashboard_recent_comments_row()` in `wp-
 admin/includes/dashboard.php`.  The div is hidden, and encapsulates
 various comment information.

 The div and its id do not seem to be referenced in the code at all. The
 code was added in r9219 and appears to be the hidden bits related to doing
 in-place editing for the comments via "Quick Edit" links. r9717 removed
 the "Quick Edit" link, but not any related markup and code.

 As the code in question is unnecessary, its removal should get rid of some
 processing and markup flab.

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


More information about the wp-trac mailing list