From 188af27140f074bc0dd6afda098173677c4d738d Mon Sep 17 00:00:00 2001 From: Vipul Gupta Date: Fri, 10 May 2024 02:12:26 +0530 Subject: [PATCH] fix: Removes the default value for search results. --- packages/block-library/src/query-title/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/query-title/index.php b/packages/block-library/src/query-title/index.php index dd6b4c37fa282..c30517cbdbe1d 100644 --- a/packages/block-library/src/query-title/index.php +++ b/packages/block-library/src/query-title/index.php @@ -38,7 +38,7 @@ function render_block_core_query_title( $attributes ) { } } if ( $is_search ) { - $title = isset( $attributes['searchResultsTerm'] ) && ! empty( $attributes['searchResultsTerm'] ) ? $attributes['searchResultsTerm'] : __( 'Search results' ); + $title = ! empty( $attributes['searchResultsTerm'] ) ? $attributes['searchResultsTerm'] : ''; if ( isset( $attributes['showSearchTerm'] ) && $attributes['showSearchTerm'] ) {