Skip to content

Commit

Permalink
Change directives suffix and data-wp-island
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot authored and artemiomorales committed Jun 1, 2023
1 parent d8fc1a3 commit 8b67eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8b67eb3

Please sign in to comment.