Skip to content

Commit 4ff94f6

Browse files
author
abbas
committed
Static test fixed
1 parent 96569f9 commit 4ff94f6

File tree

1 file changed

+12
-8
lines changed
  • app/code/Magento/Theme/view/frontend/templates/html

1 file changed

+12
-8
lines changed

app/code/Magento/Theme/view/frontend/templates/html/title.phtml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
* Copyright 2015 Adobe
44
* All Rights Reserved.
55
*/
6-
6+
/**
7+
* Escaper
8+
*
9+
* @var \Magento\Framework\Escaper
10+
*/
711
/**
812
* @var $block \Magento\Theme\Block\Html\Title
913
*/
@@ -16,20 +20,20 @@ if ($pageHeading) {
1620
$titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
1721
. $block->getAddBaseAttribute()
1822
. '>'
19-
. $block->escapeHtml($pageHeading)
23+
. $escaper->escapeHtml($pageHeading)
2024
. '</span>';
2125
}
2226
?>
2327

24-
<?php if ($titleHtml) : ?>
25-
<div class="page-title-wrapper<?= $block->escapeHtmlAttr($cssClass) ?>">
28+
<?php if ($titleHtml): ?>
29+
<div class="page-title-wrapper<?= $escaper->escapeHtmlAttr($cssClass) ?>">
2630
<h1 class="page-title"
27-
<?php if ($block->getId()) : ?> id="<?= $block->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
28-
<?php if ($block->getAddBaseAttributeAria()) : ?>
29-
aria-labelledby="<?= $block->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
31+
<?php if ($block->getId()): ?> id="<?= $escaper->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
32+
<?php if ($block->getAddBaseAttributeAria()): ?>
33+
aria-labelledby="<?= $escaper->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
3034
<?php endif; ?>>
3135
<?= /* @noEscape */ $titleHtml ?>
3236
</h1>
3337
<?= $block->getChildHtml() ?>
3438
</div>
35-
<?php endif; ?>
39+
<?php endif; ?>

0 commit comments

Comments
 (0)