File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
app/code/Magento/Checkout/view/frontend/templates/onepage Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 44 * See COPYING.txt for license details.
55 */
66
7- /** @var $block \Magento\Checkout\Block\Onepage\Link */
7+ use Magento \Checkout \Block \Onepage \Link ;
8+ use Magento \Framework \Escaper ;
9+
10+ /**
11+ * @var Link $block
12+ * @var Escaper $escaper
13+ */
814?>
9- <?php if ($ block ->isPossibleOnepageCheckout ()) : ?>
15+ <?php if ($ block ->isPossibleOnepageCheckout ()): ?>
1016 <button type="button"
1117 data-role="proceed-to-checkout"
12- title="<?= $ block ->escapeHtmlAttr (__ ('Proceed to Checkout ' )) ?> "
18+ title="<?= $ escaper ->escapeHtmlAttr (__ ('Proceed to Checkout ' )) ?> "
1319 data-mage-init='{
1420 "Magento_Checkout/js/proceed-to-checkout":{
15- "checkoutUrl":"<?= $ block ->escapeJs ($ block ->escapeUrl ( $ block -> getCheckoutUrl () )) ?> "
21+ "checkoutUrl":"<?= $ escaper ->escapeJs ($ block ->getCheckoutUrl ()) ?> "
1622 }
1723 }'
1824 class="action primary checkout<?= ($ block ->isDisabled ()) ? ' disabled ' : '' ?> "
19- <?php if ($ block ->isDisabled ()) : ?>
25+ <?php if ($ block ->isDisabled ()): ?>
2026 disabled="disabled"
2127 <?php endif ; ?> >
22- <span><?= $ block ->escapeHtml (__ ('Proceed to Checkout ' )) ?> </span>
28+ <span><?= $ escaper ->escapeHtml (__ ('Proceed to Checkout ' )) ?> </span>
2329 </button>
2430<?php endif ?>
You can’t perform that action at this time.
0 commit comments