Skip to content

Commit 0815561

Browse files
fix: validate non-empty read more text
1 parent 02a5630 commit 0815561

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)