Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions includes/class-comment-walker.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ public function start_el( &$output, $data_object, $depth = 0, $args = array(), $
add_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
}

// ClassicPress cut the comment method and defaults to html5. So this will ensure that html5_comment is always called
if ( ! method_exists( $this, 'comment' ) || ! array_key_exists( 'format', $args ) ) {
$args['format'] = 'html5';
}

// Maintain the original pingback and trackback output.
if ( ( 'pingback' === $comment->comment_type || 'trackback' === $comment->comment_type ) && $args['short_ping'] ) {
ob_start();
Expand Down
Loading