Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
comment.module
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jan 2007 at 21:08 UTC
Updated:
9 Jun 2012 at 17:51 UTC
theme_comment_wrapper creates an empty div when there are no comments. Remove the empty div. I am using the following change on one site in 5.0.
From:
function theme_comment_wrapper($content) {
return '<div id="comments">' . $content . '</div>';
}
to:
function theme_comment_wrapper($content) {
if(trim($content) == '')
{
return '';
}
return '<div id="comments">' . $content . '</div>';
}
Comments
Comment #1
Zen commentedConfirmed. Please submit your change in patch form. Please also search drupal.org for code style guidelines (or follow examples from core) and clean up your patch prior to submitting.
Thanks Peter :)
-K
Comment #2
dmitrig01 commentedyup
Comment #3
dpearcefl commentedIs there any interest in pursuing this issue?
Comment #4
handrus commentedThis is already fixed on D6.
What is the point in the version chosen there? By the comments it sounds like it was opened on version 5.
comment.module - line 1053
Closing it.