WordPress.org

Make WordPress Core

Changeset 12045


Ignore:
Timestamp:
10/15/2009 09:47:35 PM (9 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r11930 r12045  
    12561256?>
    12571257        <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
    1258         <?php if ( 'ul' == $args['style'] ) : ?>
     1258        <?php if ( 'div' != $args['style'] ) : ?>
    12591259        <div id="div-comment-<?php comment_ID() ?>" class="comment-body">
    12601260        <?php endif; ?>
     
    12751275        <?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
    12761276        </div>
    1277         <?php if ( 'ul' == $args['style'] ) : ?>
     1277        <?php if ( 'div' != $args['style'] ) : ?>
    12781278        </div>
    12791279        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.