File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/PageBuilder/Plugin/Filter Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \PageBuilder \Plugin \Filter ;
9
9
10
+ use Magento \Store \Model \Store ;
11
+
10
12
/**
11
13
* Plugin to the template filter to process any background images added by Page Builder
12
14
*/
@@ -120,7 +122,7 @@ public function aroundCustomvarDirective(
120
122
) {
121
123
// Determine the need to escape the return value of observed method.
122
124
// Admin context requires store ID of 0; in that context return value should be escaped
123
- $ shouldEscape = $ subject ->getStoreId () !== null && (int ) $ subject ->getStoreId () === 0 ;
125
+ $ shouldEscape = $ subject ->getStoreId () !== null && (int ) $ subject ->getStoreId () === Store:: DEFAULT_STORE_ID ;
124
126
125
127
if (!$ shouldEscape ) {
126
128
return $ proceed ($ construction );
You can’t perform that action at this time.
0 commit comments