We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b977c2 commit 0eb4712Copy full SHA for 0eb4712
packages/block-library/src/image/index.php
@@ -78,7 +78,7 @@ function render_block_core_image( $attributes, $content ) {
78
// Add directive to expand modal image if appropriate.
79
$m = new WP_HTML_Tag_Processor( $content );
80
$m->next_tag( 'img' );
81
- $m->set_attribute( 'data-wp-context', '{ "core": { "image": { "imageSrc": "' . wp_get_attachment_url($attributes['id']) . '"} } }' );
+ $m->set_attribute( 'data-wp-context', '{ "core": { "image": { "imageSrc": "' . wp_get_attachment_url( $attributes['id'] ) . '"} } }' );
82
$m->set_attribute( 'data-wp-bind--src', 'selectors.core.image.imageSrc' );
83
$modal_content = $m->get_updated_html();
84
0 commit comments