From 64cfd4be5e7bcdbc8adea0bbdbd92dd16d4b5397 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Wed, 2 Feb 2022 19:08:01 +1100 Subject: [PATCH 1/2] Keep the results message consistent with the editor. --- packages/block-library/src/post-template/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/post-template/index.php b/packages/block-library/src/post-template/index.php index 725c805148d82..a8f167fae205c 100644 --- a/packages/block-library/src/post-template/index.php +++ b/packages/block-library/src/post-template/index.php @@ -37,7 +37,7 @@ function render_block_core_post_template( $attributes, $content, $block ) { $query = new WP_Query( $query_args ); if ( ! $query->have_posts() ) { - return ''; + return __( 'No results found.' ); } $classnames = ''; From c5f110894198c8fec63933c1ebd9d4006c054713 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Wed, 2 Feb 2022 19:12:07 +1100 Subject: [PATCH 2/2] Adding consistent markup --- packages/block-library/src/post-template/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/post-template/index.php b/packages/block-library/src/post-template/index.php index a8f167fae205c..558c8700b1af8 100644 --- a/packages/block-library/src/post-template/index.php +++ b/packages/block-library/src/post-template/index.php @@ -37,7 +37,7 @@ function render_block_core_post_template( $attributes, $content, $block ) { $query = new WP_Query( $query_args ); if ( ! $query->have_posts() ) { - return __( 'No results found.' ); + return '

' . __( 'No results found.' ) . '

'; } $classnames = '';