File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Theme/view/frontend/templates/html Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 66
77/**
88 * @var \Magento\Theme\Block\Html\Header $block
9+ * @var \Magento\Framework\Escaper $escaper
910 */
1011$ welcomeMessage = $ block ->getWelcome ();
1112?>
1213<?php if ($ block ->getShowPart () == 'welcome ' ) : ?>
1314 <li class="greet welcome" data-bind="scope: 'customer'">
1415 <!-- ko if: customer().fullname -->
1516 <span class="logged-in"
16- data-bind="text: new String('<?= $ block ->escapeHtml (__ ('Welcome, %1! ' , '%1 ' )) ?> ').replace('%1', customer().fullname)">
17+ data-bind="text: new String('<?= $ escaper ->escapeHtml (__ ('Welcome, %1! ' , '%1 ' )) ?> ').replace('%1', customer().fullname)">
1718 </span>
1819 <!-- /ko -->
1920 <!-- ko ifnot: customer().fullname -->
2021 <span class="not-logged-in"
21- data-bind="html: ' <?= $ block ->escapeHtml ($ welcomeMessage ) ?> ' "></span>
22+ data-bind="html: " <?= $ escaper ->escapeHtml ($ welcomeMessage ) ?> "></span>
2223 <?= $ block ->getBlockHtml ('header.additional ' ) ?>
2324 <!-- /ko -->
2425 </li>
You can’t perform that action at this time.
0 commit comments