PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.6
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.6
1.6.6 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 All 49 releases
← All changes | app/Services/Renderer/MiniCartRenderer.php +2 -2 1.4.2 → 1.6.6 View file →
@@ -31,9 +31,9 @@
31 31 $showTotalPrice = filter_var(Arr::get($atts, 'show_total_price', true), FILTER_VALIDATE_BOOLEAN);
32 32 $iconColor = Arr::get($atts, 'icon_color', '');
33 33 $priceColor = Arr::get($atts, 'price_color', '');
34 34 $productCountColor = Arr::get($atts, 'product_count_color', '');
35 - $buttonClass = Arr::get($atts, 'button_class', '');
35 + $buttonClass = (string) Arr::get($atts, 'button_class', '');
36 36
37 37
38 38 // Build style attribute
39 39 $iconStyle = $iconColor ? 'style="color: ' . esc_attr($iconColor) . ';"' : '';
@@ -64,9 +64,9 @@
64 64
65 65
66 66 ?>
67 67 <div <?php echo $wrapperAttributes; ?>>
68 - <button class="fct-mini-cart-button <?php echo $buttonClass ?>" data-fluent-cart-cart-expand-button
68 + <button class="fct-mini-cart-button <?php echo esc_attr($buttonClass); ?>" data-fluent-cart-cart-expand-button
69 69 aria-label="<?php esc_attr_e('Open Shopping Cart', 'fluent-cart'); ?>">
70 70 <span class="fct-mini-cart-wrap" <?php echo $iconStyle; ?>>
71 71 <?php $this->renderCartIcon($cartIcon); ?>
72 72