From bbfa765d02e0664353c7d7f99ff154af743c6a4a Mon Sep 17 00:00:00 2001 From: Mario Santos Date: Thu, 5 Oct 2023 09:27:11 +0200 Subject: [PATCH] Remove unnecessary code --- packages/block-library/src/image/index.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/block-library/src/image/index.php b/packages/block-library/src/image/index.php index 5b1720b464238..0f284b126e949 100644 --- a/packages/block-library/src/image/index.php +++ b/packages/block-library/src/image/index.php @@ -266,11 +266,6 @@ function block_core_image_render_lightbox( $block_content, $block ) { $close_button_color = esc_attr( $global_styles_color['text'] ); } } - $global_styles_color = wp_get_global_styles( array( 'color' ) ); - $has_background_color = ! empty( $global_styles_color['background'] ); - $has_text_color = ! empty( $global_styles_color['text'] ); - $background_color = esc_attr( ( wp_theme_has_theme_json() && $has_background_color ) ? $global_styles_color['background'] : '#fff' ); - $close_button_color = esc_attr( ( wp_theme_has_theme_json() && $has_text_color ) ? $global_styles_color['text'] : '#000' ); $close_button_icon = ''; $dialog_label = $alt_attribute ? esc_attr( $alt_attribute ) : esc_attr__( 'Image' );