Title: Bug Report: Comments Widget
Last modified: August 20, 2016

---

# Bug Report: Comments Widget

 *  [benklocek](https://wordpress.org/support/users/benklocek/)
 * (@benklocek)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/bug-report-comments-widget/)
 * In thethe-posts-and-comments/lib/class.comment-widget.php line 207, the code `
   $html.= $after_widget;` should be moved up inside the } before it.
 * When there are no comments, the widget adds an extraneous `</div>` tag that closes
   the sidebar prematurely, causing all kinds of theme issues.
 * It would be worth your time as a dev, to properly indent you code, so things 
   like this are easy to catch.
 * [http://wordpress.org/extend/plugins/thethe-posts-and-comments/](http://wordpress.org/extend/plugins/thethe-posts-and-comments/)

The topic ‘Bug Report: Comments Widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/thethe-posts-and-comments_eceded.
   svg)
 * [TheThe Posts and Comments Widgets](https://wordpress.org/plugins/thethe-posts-and-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thethe-posts-and-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thethe-posts-and-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/thethe-posts-and-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thethe-posts-and-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thethe-posts-and-comments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [benklocek](https://wordpress.org/support/users/benklocek/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/bug-report-comments-widget/)
 * Status: not resolved