Skip to content

Commit

Permalink
Replace hash based on url with PHP's uniqid()
Browse files Browse the repository at this point in the history
  • Loading branch information
luisherranz committed Jul 15, 2024
1 parent 56d9487 commit d0d8a85
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 @@ -187,7 +187,7 @@ function block_core_image_render_lightbox( $block_content, $block ) {
$figure_styles = $p->get_attribute( 'style' );

// Create unique id and set the image metadata in the state.
$unique_image_id = substr( md5( $img_uploaded_src ), 0, 10 );
$unique_image_id = uniqid();

wp_interactivity_state(
'core/image',
Expand Down

0 comments on commit d0d8a85

Please sign in to comment.