From fe97489860eaffbd0f24507d70e32eba2cc061fa Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Mon, 19 Apr 2021 11:26:25 +0200 Subject: [PATCH] Check if the placeholder is empty --- packages/block-library/src/post-excerpt/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/post-excerpt/index.php b/packages/block-library/src/post-excerpt/index.php index 0bb4dbf7374ed6..b95794f9e05312 100644 --- a/packages/block-library/src/post-excerpt/index.php +++ b/packages/block-library/src/post-excerpt/index.php @@ -22,7 +22,7 @@ function render_block_core_post_excerpt( $attributes, $content, $block ) { return ''; } - $more_text = isset( $attributes['moreText'] ) ? '' . $attributes['moreText'] . '' : ''; + $more_text = isset( $attributes['moreText'] ) && '' !== $attributes['moreText'] ? '' . $attributes['moreText'] . '' : ''; $filter_excerpt_length = function() use ( $attributes ) { return isset( $attributes['wordCount'] ) ? $attributes['wordCount'] : 55;