From d1b31206c3dd8799c7416d4ced941dae60a58149 Mon Sep 17 00:00:00 2001 From: Carolina Nymark Date: Mon, 11 Sep 2023 12:00:43 +0200 Subject: [PATCH] Footnotes: Fix writingMode (text orientation setting) on the front --- packages/block-library/src/footnotes/index.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/footnotes/index.php b/packages/block-library/src/footnotes/index.php index 5924db3a190c20..5b08e3761f2ad6 100644 --- a/packages/block-library/src/footnotes/index.php +++ b/packages/block-library/src/footnotes/index.php @@ -38,7 +38,16 @@ function render_block_core_footnotes( $attributes, $content, $block ) { return ''; } - $wrapper_attributes = get_block_wrapper_attributes(); + $styles = ''; + if ( isset( $attributes['style']['typography']['writingMode'] ) ) { + $styles = "writing-mode: {$attributes['style']['typography']['writingMode']};"; + } + + $wrapper_attributes = get_block_wrapper_attributes( + array( + 'style' => $styles, + ) + ); $block_content = '';