Skip to content

Commit

Permalink
Fix PHPUnit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Takshil-Kunadia committed Nov 15, 2024
1 parent 4c5f894 commit e6133b0
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 @@ -216,7 +216,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
$p->set_attribute( 'data-wp-on-async-window--resize', 'callbacks.setButtonStyles' );
// Set an event to prefetch the image on pointerenter and pointerdown(mobile).
$p->set_attribute( 'data-wp-on--pointerenter', 'actions.prefetchImage' );
$p->set_attribute( 'data-wp-on--pointerdown', 'actions.prefetchImage' );
$p->set_attribute( 'data-wp-on--pointerdown', 'actions.prefetchImage' );
// Sets an event callback on the `img` because the `figure` element can also
// contain a caption, and we don't want to trigger the lightbox when the
// caption is clicked.
Expand Down

0 comments on commit e6133b0

Please sign in to comment.