Make WordPress Core

Ticket #8091: parent_class.diff

File parent_class.diff, 1.1 KB (added by filosofo, 18 years ago)
  • wp-includes/comment-template.php

     
    11681168                        $add_below = 'div-comment';
    11691169                }
    11701170?>
    1171                 <<?php echo $tag ?> <?php comment_class() ?> id="comment-<?php comment_ID() ?>">
     1171                <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>">
    11721172                <?php if ( 'ul' == $args['style'] ) : ?>
    11731173                <div id="div-comment-<?php comment_ID() ?>">
    11741174                <?php endif; ?>
  • wp-includes/classes.php

     
    822822                $id_field = $this->db_fields['id'];
    823823
    824824                //display this element
     825                if ( ! empty( $args[0] ) )
     826                        $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
    825827                $cb_args = array_merge( array(&$output, $element, $depth), $args);
    826828                call_user_func_array(array(&$this, 'start_el'), $cb_args);
    827829