Orphaned code and markup in Recent Comments dashboard widget
|Reported by:||coffee2code||Owned by:||anonymous|
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.
Change History (5)
- Keywords has-patch needs-testing added
- Milestone changed from 2.8 to 2.9