mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Add a "parent" class to comment LIs with children. props filosofo. fixes #8091
git-svn-id: https://develop.svn.wordpress.org/trunk@9812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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; ?>
|
||||
|
||||
Reference in New Issue
Block a user