* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link https://github.com/bourafai/wp-bootstrap-4-comment-walker */ class Bootstrap_Comment_Walker extends Walker_Comment { /** * Output a comment in the HTML5 format. * * @since 1.0.0 * * @see wp_list_comments() * * @param object $comment the comments list. * @param int $depth Depth of comments. * @param array $args An array of arguments. */ protected function html5_comment( $comment, $depth, $args ) { $tag = ( $args['style'] === 'div' ) ? 'div' : 'li'; ?> < id="comment-" has_children ? 'has-children media' : ' media' ); ?>>
comment_approved ) : ?>