From 8b67eb3340b3cddd5ec7a60530af61a7dc74f383 Mon Sep 17 00:00:00 2001 From: Mario Santos Date: Thu, 1 Jun 2023 13:14:00 +0200 Subject: [PATCH] Change directives suffix and `data-wp-island` --- packages/block-library/src/image/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/image/index.php b/packages/block-library/src/image/index.php index 8b5b554b825da8..3c90f0fbc21cfe 100644 --- a/packages/block-library/src/image/index.php +++ b/packages/block-library/src/image/index.php @@ -62,7 +62,7 @@ function render_block_core_image( $attributes, $content ) { $w = new WP_HTML_Tag_Processor( $content ); $w->next_tag( 'figure' ); $w->add_class( 'wp-lightbox-container' ); - $w->set_attribute( 'data-wp-interactive', '' ); + $w->set_attribute( 'data-wp-interactive', true ); $w->set_attribute( 'data-wp-context', '{ "core": { "image": { "initialized": false, "lightboxEnabled": false } } }' ); $body_content = $w->get_updated_html();