From 53c09955d884f5a2dbb74eed2b38474e307cb214 Mon Sep 17 00:00:00 2001 From: Carlos Bravo Date: Fri, 21 Jul 2023 14:02:33 +0200 Subject: [PATCH] Remove unused vars --- lib/block-supports/behaviors.php | 1 - packages/block-library/src/image/index.php | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/block-supports/behaviors.php b/lib/block-supports/behaviors.php index 7883059e56ee75..95639178c2de41 100644 --- a/lib/block-supports/behaviors.php +++ b/lib/block-supports/behaviors.php @@ -44,7 +44,6 @@ function gutenberg_register_behaviors_support( $block_type ) { * @return string Filtered block content. */ function gutenberg_render_behaviors_support_lightbox( $block_content, $block ) { - $experiments = get_option( 'gutenberg-experiments' ); $link_destination = isset( $block['attrs']['linkDestination'] ) ? $block['attrs']['linkDestination'] : 'none'; // Get the lightbox setting from the block attributes. if ( isset( $block['attrs']['behaviors']['lightbox'] ) ) { diff --git a/packages/block-library/src/image/index.php b/packages/block-library/src/image/index.php index ba09f270205005..b9bcf461dcf602 100644 --- a/packages/block-library/src/image/index.php +++ b/packages/block-library/src/image/index.php @@ -32,7 +32,6 @@ function render_block_core_image( $attributes, $content, $block ) { } $should_load_view_script = false; - $experiments = get_option( 'gutenberg-experiments' ); $link_destination = isset( $attributes['linkDestination'] ) ? $attributes['linkDestination'] : 'none'; // Get the lightbox setting from the block attributes. if ( isset( $attributes['behaviors']['lightbox'] ) ) {