From a17487ce279a8212c1cd81c010ae94555ded05b3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 1 Aug 2019 12:16:23 +0300 Subject: [PATCH] Make sure $label_markup is always defined. (#16189) 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(