Fix wp_list_comments() ol/ul/div logic oversight. props junsuijin. fixes #10742

git-svn-id: https://develop.svn.wordpress.org/trunk@12045 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2009-10-15 21:47:35 +00:00
parent 9510a36835
commit 47db906431
1 changed files with 2 additions and 2 deletions

View File

@ -1255,7 +1255,7 @@ class Walker_Comment extends Walker {
}
?>
<<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
<?php if ( 'ul' == $args['style'] ) : ?>
<?php if ( 'div' != $args['style'] ) : ?>
<div id="div-comment-<?php comment_ID() ?>" class="comment-body">
<?php endif; ?>
<div class="comment-author vcard">
@ -1274,7 +1274,7 @@ class Walker_Comment extends Walker {
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>
<?php if ( 'ul' == $args['style'] ) : ?>
<?php if ( 'div' != $args['style'] ) : ?>
</div>
<?php endif; ?>
<?php