Skip to content

Commit 06d262c

Browse files
Merge pull request #4476 from Codeinwp/bugfix/pro/3132
Improved keyboard navigation between posts
2 parents 3f64ee9 + 0815561 commit 06d262c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inc/views/partials/excerpt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private function get_post_excerpt( $context, $post_id = null ) {
4848
$length = $this->get_excerpt_length();
4949

5050
$output = '';
51-
$output .= '<div class="excerpt-wrap entry-summary">';
51+
$output .= '<div class="excerpt-wrap entry-summary" tabindex="0">';
5252
$output .= $this->get_excerpt( $length, $post_id );
5353
$output .= '</div>';
5454

inc/views/template_parts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function link_excerpt_more( $moretag, $post_id = null ) {
473473
);
474474

475475
// Return $new_moretag if 'text' key is not set in $read_more_args.
476-
if ( ! isset( $read_more_args['text'] ) ) {
476+
if ( ! isset( $read_more_args['text'] ) || empty( $read_more_args['text'] ) ) {
477477
return $new_moretag;
478478
}
479479

0 commit comments

Comments
 (0)