From 0c7a9ea5c6153597f1120575335e6a777a373952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Mon, 2 Sep 2024 16:51:32 +0100 Subject: [PATCH] Fix PHP indentation --- packages/block-library/src/media-text/index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/media-text/index.php b/packages/block-library/src/media-text/index.php index 9a92fcdfa4da50..95e72549b088c4 100644 --- a/packages/block-library/src/media-text/index.php +++ b/packages/block-library/src/media-text/index.php @@ -29,13 +29,13 @@ function render_block_core_media_text( $attributes, $content ) { return $content; } - $has_media_on_right = isset( $attributes['mediaPosition'] ) && 'right' === $attributes['mediaPosition']; - $image_fill = isset( $attributes['imageFill'] ) && $attributes['imageFill']; - $focal_point = isset( $attributes['focalPoint'] ) ? round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%' : '50% 50%'; - $unique_id = 'wp-block-media-text__media-' . wp_unique_id(); + $has_media_on_right = isset( $attributes['mediaPosition'] ) && 'right' === $attributes['mediaPosition']; + $image_fill = isset( $attributes['imageFill'] ) && $attributes['imageFill']; + $focal_point = isset( $attributes['focalPoint'] ) ? round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%' : '50% 50%'; + $unique_id = 'wp-block-media-text__media-' . wp_unique_id(); - $block_tag_processor = new WP_HTML_Tag_Processor( $content ); - $block_query = array( + $block_tag_processor = new WP_HTML_Tag_Processor( $content ); + $block_query = array( 'tag_name' => 'div', 'class_name' => 'wp-block-media-text', );