File tree 2 files changed +11
-7
lines changed
app/code/Magento/Customer/view/frontend/templates/account/link
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /** @var \Magento\Customer\Block\Account\AuthorizationLink $block */
8
-
7
+ /**
8
+ * @var \Magento\Customer\Block\Account\AuthorizationLink $block
9
+ * @var \Magento\Framework\Escaper $escaper
10
+ */
9
11
$ dataPostParam = '' ;
10
12
if ($ block ->isLoggedIn ()) {
11
13
$ dataPostParam = sprintf (" data-post='%s' " , $ block ->getPostParams ());
12
14
}
13
15
?>
14
- <li class="link authorization-link" data-label="<?= $ block ->escapeHtml (__ ('or ' )) ?> ">
16
+ <li class="link authorization-link" data-label="<?= $ escaper ->escapeHtml (__ ('or ' )) ?> ">
15
17
<a <?= /* @noEscape */ $ block ->getLinkAttributes () ?>
16
- <?= /* @noEscape */ $ dataPostParam ?> ><?= $ block ->escapeHtml ($ block ->getLabel ()) ?> </a>
18
+ <?= /* @noEscape */ $ dataPostParam ?> ><?= $ escaper ->escapeHtml ($ block ->getLabel ()) ?> </a>
17
19
</li>
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /** @var \Magento\Customer\Block\Account\Link $block */
8
-
7
+ /**
8
+ * @var \Magento\Customer\Block\Account\Link $block
9
+ * @var \Magento\Framework\Escaper $escaper
10
+ */
9
11
?>
10
12
<li class="link my-account-link">
11
- <a <?= /* @noEscape */ $ block ->getLinkAttributes () ?> ><?= $ block ->escapeHtml ($ block ->getLabel ()) ?> </a>
13
+ <a <?= /* @noEscape */ $ block ->getLinkAttributes () ?> ><?= $ escaper ->escapeHtml ($ block ->getLabel ()) ?> </a>
12
14
</li>
You can’t perform that action at this time.
0 commit comments