Skip to content

Commit d28e807

Browse files
committed
MAGETWO-99286: Eliminate @escapeNotVerified in Magento_Swatches module
1 parent 50329e2 commit d28e807

File tree

2 files changed

+2
-2
lines changed
  • app/code/Magento/Swatches/view

2 files changed

+2
-2
lines changed

app/code/Magento/Swatches/view/adminhtml/templates/catalog/product/attribute/text.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $stores = $block->getStoresSortedBySortOrder();
1919
<th class="col-draggable"></th>
2020
<th class="col-default"><span><?= $block->escapeHtml(__('Is Default')) ?></span></th>
2121
<?php foreach ($stores as $_store) : ?>
22-
<th class="col-swatch col-swatch-min-width col-<%- data.id %><?= ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID) ? '_required' : '' ?>"
22+
<th class="col-swatch col-swatch-min-width col-<%- data.id %><?= ($_store->getId() == \Magento\Store\Model\Store::DEFAULT_STORE_ID) ? ' _required' : '' ?>"
2323
colspan="2">
2424
<span><?= $block->escapeHtml($_store->getName()) ?></span>
2525
</th>

app/code/Magento/Swatches/view/frontend/templates/product/view/renderer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"[data-role=swatch-options]": {
1313
"Magento_Swatches/js/swatch-renderer": {
1414
"jsonConfig": <?= /* @noEscape */ $swatchOptions = $block->getJsonConfig() ?>,
15-
"jsonSwatchConfig": <?=/* @noEscape */ $swatchOptions = $block->getJsonSwatchConfig() ?>,
15+
"jsonSwatchConfig": <?= /* @noEscape */ $swatchOptions = $block->getJsonSwatchConfig() ?>,
1616
"mediaCallback": "<?= $block->escapeJs($block->escapeUrl($block->getMediaCallback())) ?>",
1717
"gallerySwitchStrategy": "<?= $block->escapeJs($block->getVar('gallery_switch_strategy', 'Magento_ConfigurableProduct')) ?: 'replace'; ?>",
1818
"jsonSwatchImageSizeConfig": <?= /* @noEscape */ $block->getJsonSwatchSizeConfig() ?>

0 commit comments

Comments
 (0)