diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 5c2580c42e..b49a20d7bb 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -822,6 +822,8 @@ class Walker { $id_field = $this->db_fields['id']; //display this element + if ( ! empty( $args[0] ) ) + $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] ); $cb_args = array_merge( array(&$output, $element, $depth), $args); call_user_func_array(array(&$this, 'start_el'), $cb_args); diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 1e2e4a27b8..f5b3a4a589 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1168,7 +1168,7 @@ class Walker_Comment extends Walker { $add_below = 'div-comment'; } ?> - < id="comment-"> + < id="comment-">