diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php
index 87834f5..c0d4bd3 100644
a
|
b
|
class Walker_Comment extends Walker { |
55 | 55 | public function start_lvl( &$output, $depth = 0, $args = array() ) { |
56 | 56 | $GLOBALS['comment_depth'] = $depth + 1; |
57 | 57 | |
| 58 | // Default class. |
| 59 | $classes = array( 'children' ); |
| 60 | |
| 61 | /** |
| 62 | * Filters the CSS class(es) applied to a comments element. |
| 63 | * |
| 64 | * @since 4.9.9 |
| 65 | * |
| 66 | * @param array $classes The CSS classes that are applied to the comment element. |
| 67 | * @param stdClass $args Uses 'style' argument for type of HTML list. Default empty array. |
| 68 | * @param int $depth Depth of the current comment. Default 0. |
| 69 | */ |
| 70 | $class_names = join( ' ', apply_filters( 'comment_list_sublist_class', $classes, $args, $depth ) ); |
| 71 | $class_names = $class_names ? sprintf( ' class="%s"', esc_attr( $class_names ) ) : ''; |
| 72 | |
58 | 73 | switch ( $args['style'] ) { |
59 | 74 | case 'div': |
60 | 75 | break; |
61 | 76 | case 'ol': |
62 | | $output .= '<ol class="children">' . "\n"; |
| 77 | $output .= '<ol' . $class_names . '>' . "\n"; |
63 | 78 | break; |
64 | 79 | case 'ul': |
65 | 80 | default: |
66 | | $output .= '<ul class="children">' . "\n"; |
| 81 | $output .= '<ul' . $class_names . '>' . "\n"; |
67 | 82 | break; |
68 | 83 | } |
69 | 84 | } |