Skip to content

Commit 4ebdefa

Browse files
author
Hwashiang Yu
committed
MAGETWO-56444: UI-Related Modules Template Update
- Corrected theme and ui module templates
1 parent 753d107 commit 4ebdefa

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

app/code/Magento/Theme/view/base/templates/root.phtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
?>
88
<!doctype html>
9-
<html <?= $block->escapeHtmlAttr($htmlAttributes) ?>>
10-
<head <?= $block->escapeHtmlAttr($headAttributes) ?>>
11-
<?= $block->escapeHtml($requireJs) ?>
12-
<?= $block->escapeHtml($headContent) ?>
13-
<?= $block->escapeHtml($headAdditional) ?>
9+
<html <?= /* @noEscape */ $htmlAttributes ?>>
10+
<head <?= /* @noEscape */ $headAttributes ?>>
11+
<?= /* @noEscape */ $requireJs ?>
12+
<?= /* @noEscape */ $headContent ?>
13+
<?= /* @noEscape */ $headAdditional ?>
1414
</head>
15-
<body data-container="body" data-mage-init='{"loaderAjax": {}, "loader": { "icon": "<?= $block->escapeHtmlAttr($loaderIcon) ?>"}}' <?= $block->escapeHtmlAttr($bodyAttributes) ?>>
16-
<?= $block->escapeHtml($layoutContent) ?>
15+
<body data-container="body" data-mage-init='{"loaderAjax": {}, "loader": { "icon": "<?= /* @noEscape */ $loaderIcon ?>"}}' <?= /* @noEscape */ $bodyAttributes ?>>
16+
<?= /* @noEscape */ $layoutContent ?>
1717
</body>
1818
</html>

app/code/Magento/Ui/view/base/templates/stepswizard.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/** @var $block \Magento\Ui\Block\Component\StepsWizard */
88
?>
9-
<div data-role="steps-wizard-main" class="steps-wizard <?= $block->escapeHtmlAttr($block->getData('config/dataScope')) ?>" data-bind="scope: '<?= $block->escapeHtmlAttr($block->getComponentName()) ?>'">
9+
<div data-role="steps-wizard-main" class="steps-wizard <?= /* @noEscape */ $block->getData('config/dataScope') ?>" data-bind="scope: '<?= $block->escapeHtmlAttr($block->getComponentName()) ?>'">
1010
<div data-role="messages" class="messages"></div>
1111

1212
<div data-role="steps-wizard-controls" class="steps-wizard-navigation">
@@ -62,7 +62,7 @@
6262
"component": "Magento_Ui/js/lib/step-wizard",
6363
"initData": <?= $block->escapeJs($this->helper("Magento\Framework\Json\Helper\Data")->jsonEncode($block->getInitData())) ?>,
6464
"stepsNames": <?= $block->escapeJs($this->helper("Magento\Framework\Json\Helper\Data")->jsonEncode($block->getStepComponents())) ?>,
65-
"modalClass": "<?= $block->escapeJs($block->getData('config/dataScope')) ?>"
65+
"modalClass": "<?= /* @noEscape */ $block->getData('config/dataScope') ?>"
6666
}
6767
}
6868
}

app/code/Magento/Ui/view/base/templates/wysiwyg/active_editor.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
require.config({
1111
map: {
1212
'*': {
13-
wysiwygAdapter: '<?= $block->escapeJs($block->getWysiwygAdapterPath()) ?>'
13+
wysiwygAdapter: '<?= /* @noEscape */ $block->getWysiwygAdapterPath() ?>'
1414
}
1515
}
1616
});

0 commit comments

Comments
 (0)