'ol', 'short_ping' => true, 'echo' => false, ]); } /** * The previous comments link. */ public function previous(): ?string { if (! get_previous_comments_link()) { return null; } return get_previous_comments_link( __('← Older comments', 'sage') ); } /** * The next comments link. */ public function next(): ?string { if (! get_next_comments_link()) { return null; } return get_next_comments_link( __('Newer comments →', 'sage') ); } /** * Determine if the comments are paginated. */ public function paginated(): bool { return get_comment_pages_count() > 1 && get_option('page_comments'); } /** * Determine if the comments are closed. */ public function closed(): bool { return ! comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments'); } }