Skip to content

Commit

Permalink
Make sure $label_markup is always defined. (#16189)
Browse files Browse the repository at this point in the history
Fixes #16188.
  • Loading branch information
SergeyBiryukov authored and gziolo committed Aug 29, 2019
1 parent 157341d commit c43ce49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c43ce49

Please sign in to comment.