Skip to content

Commit

Permalink
fix: Removes the default value for search results.
Browse files Browse the repository at this point in the history
  • Loading branch information
vipul0425 committed May 9, 2024
1 parent a7698f6 commit 188af27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/query-title/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) {

Expand Down

0 comments on commit 188af27

Please sign in to comment.