Skip to content

Commit

Permalink
simplify the block to be interpreted same across the browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
DjidjaleskaSandra committed May 10, 2024
1 parent e9e9a03 commit 7a770b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions blocks/init/src/Blocks/components/quote/quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
return;
}

$unique = Components::getUnique();

$componentClass = $manifest['componentClass'] ?? '';
$additionalClass = $attributes['additionalClass'] ?? '';
$blockClass = $attributes['blockClass'] ?? '';
Expand All @@ -36,7 +34,7 @@
$quoteAuthorUse = Components::checkAttr('quoteAuthorUse', $attributes, $manifest);
?>

<figure class="<?php echo esc_attr($quoteClass); ?>" role="presentation" aria-describedby="caption-<?php echo esc_attr($unique); ?>">
<figure class="<?php echo esc_attr($quoteClass); ?>" role="presentation">
<?php
echo Components::render('icon', Components::props('icon', $attributes, [
'blockClass' => $componentClass
Expand All @@ -54,7 +52,7 @@
<?php if ($quoteAuthorUse) { ?>
<div class="<?php echo esc_attr($quoteSeparatorClass); ?>"></div>

<figcaption class="<?php echo esc_attr($quoteCaptionClass); ?>" id="caption-<?php echo esc_attr($unique); ?>">
<figcaption class="<?php echo esc_attr($quoteCaptionClass); ?>" role="presentation">
<?php
echo Components::render('paragraph', Components::props('author', $attributes, [
'blockClass' => $componentClass
Expand Down

0 comments on commit 7a770b3

Please sign in to comment.