Fix wp_list_comments() ol/ul/div logic oversight. props junsuijin. fixes #10742
git-svn-id: http://svn.automattic.com/wordpress/trunk@12045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c26e33b939
commit
57b5a0cc30
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue