From f3afb614751b324873a9a41ccba8b26936d8518d Mon Sep 17 00:00:00 2001 From: Utsav Patel Date: Thu, 3 Oct 2024 18:32:22 +0530 Subject: [PATCH] Fix: return empty string instead of false --- packages/block-library/src/post-terms/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/post-terms/index.php b/packages/block-library/src/post-terms/index.php index 66a0a97384bb09..60ffdcedf3268f 100644 --- a/packages/block-library/src/post-terms/index.php +++ b/packages/block-library/src/post-terms/index.php @@ -60,7 +60,7 @@ function render_block_core_post_terms( $attributes, $content, $block ) { ); if ( is_wp_error( $post_terms ) ) { - return false; + return ''; } return $post_terms;