diff --git a/app/code/Magento/Theme/Block/Adminhtml/System/Design/Theme/Edit/Tab/Css.php b/app/code/Magento/Theme/Block/Adminhtml/System/Design/Theme/Edit/Tab/Css.php index 5e3bb8774d246..d47832a7187db 100644 --- a/app/code/Magento/Theme/Block/Adminhtml/System/Design/Theme/Edit/Tab/Css.php +++ b/app/code/Magento/Theme/Block/Adminhtml/System/Design/Theme/Edit/Tab/Css.php @@ -193,7 +193,7 @@ protected function _addCustomCssFieldset() Storage::PARAM_THEME_ID => $this->_getCurrentTheme()->getId(), Storage::PARAM_CONTENT_TYPE => \Magento\Theme\Model\Wysiwyg\Storage::TYPE_IMAGE ] - ) . "', null, null,'" . $this->escapeJs( + ) . "', null, null,'" . $this->_escaper->escapeJs( __('Upload Images') ) . "');", ] @@ -220,7 +220,7 @@ protected function _addCustomCssFieldset() Storage::PARAM_THEME_ID => $this->_getCurrentTheme()->getId(), Storage::PARAM_CONTENT_TYPE => \Magento\Theme\Model\Wysiwyg\Storage::TYPE_FONT ] - ) . "', null, null,'" . $this->escapeJs( + ) . "', null, null,'" . $this->_escaper->escapeJs( __('Upload Fonts') ) . "');", ] diff --git a/app/code/Magento/Theme/Block/Html/Topmenu.php b/app/code/Magento/Theme/Block/Html/Topmenu.php index fd8aaa7708cf3..98243da91b848 100644 --- a/app/code/Magento/Theme/Block/Html/Topmenu.php +++ b/app/code/Magento/Theme/Block/Html/Topmenu.php @@ -246,7 +246,7 @@ protected function _getHtml( } $html .= '
- = $block->escapeHtml($file['text']) ?>
+ = $escaper->escapeHtml($file['text']) ?>
-
+