' . wpautop( get_comment_text( $comment ) ) . '
';
} elseif ( 'excerpt' === $display_content ) {
$list_items_markup .= '' . wpautop( get_comment_excerpt( $comment ) ) . '
';
}
$list_items_markup .= '$attributes['commentsToShow'], 'status' => 'approve', 'post_status' => 'publish', ), array() ) ); $list_items_markup = ''; if ( ! empty( $comments ) ) { // Prime the cache for associated posts. This is copied from \WP_Widget_Recent_Comments::widget(). $post_ids = array_unique( wp_list_pluck( $comments, 'comment_post_ID' ) ); _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false ); foreach ( $comments as $comment ) { $list_items_markup .= '