diff --git a/packages/block-library/src/search/index.php b/packages/block-library/src/search/index.php index 7952a9085c51f..f76882f8b41d5 100644 --- a/packages/block-library/src/search/index.php +++ b/packages/block-library/src/search/index.php @@ -15,7 +15,8 @@ function render_block_core_search( $attributes ) { static $instance_id = 0; - $input_id = 'wp-block-search__input-' . ++$instance_id; + $input_id = 'wp-block-search__input-' . ++$instance_id; + $label_markup = ''; if ( ! empty( $attributes['label'] ) ) { $label_markup = sprintf(