From 0e66e09724c650c76670ca72970add46bd67209e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 16 Jun 2019 04:23:50 +0300 Subject: [PATCH] Make sure $label_markup is always defined. Fixes #16188. --- packages/block-library/src/search/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/search/index.php b/packages/block-library/src/search/index.php index 7952a9085c51f0..f76882f8b41d5a 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(