Add a "parent" class to comment LIs with children. props filosofo. fixes #8091

git-svn-id: http://svn.automattic.com/wordpress/trunk@9812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith
2008-11-20 13:36:44 +00:00
parent 6eb239267f
commit a9d7f40d2e
3 changed files with 4 additions and 2 deletions

View File

@@ -1168,7 +1168,7 @@ class Walker_Comment extends Walker {
$add_below = 'div-comment';
}
?>
<<?php echo $tag ?> <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
<<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
<?php if ( 'ul' == $args['style'] ) : ?>
<div id="div-comment-<?php comment_ID() ?>">
<?php endif; ?>