PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/Services/ShortCodeParser/SmartCodeParser.php +10 -0 1.3.26 → 1.6.5 View file →
@@ -94,8 +94,18 @@
94 94 );
95 95
96 96 }
97 97
98 + // Parser returned null = accessor not recognised. Give the fallback
99 + // filter a chance so dynamic blocks can register handlers for codes
100 + // their parser doesn't know about (e.g. PDF item table).
101 + if ($parsedValue === null) {
102 + $fallback = apply_filters($this->hookPrefix . 'smartcode_fallback', $code, $data);
103 + if ($fallback !== $code) {
104 + $parsedValue = $fallback;
105 + }
106 + }
107 +
98 108 return $this->transform($parsedValue, $code, $data);
99 109 }
100 110
101 111 /**