PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.1.5
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.1.5
3.1.13 3.1.12 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 122 releases
← All changes | Inc/Core/Blocks/Button.php +2 -5 trunk3.1.5 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.13 Free
4 + * @version 3.1.5 Free
5 5 *
6 6 * @author FirePlugins <info@fireplugins.com>
7 7 * @link https://www.fireplugins.com
8 8 * @copyright Copyright © 2026 FirePlugins All Rights Reserved
@@ -36,12 +36,9 @@
36 36 public function render_callback($attributes, $content)
37 37 {
38 38 wp_enqueue_style('fb-block-button');
39 39
40 - // blockFontFamily is declared as an object but its schema default is the string
41 - // "default", so guard for the {value:...} shape before dereferencing to avoid a
42 - // fatal "Cannot access offset of type string on string" on PHP 8+.
43 - if (isset($attributes['blockFontType']) && $attributes['blockFontType'] === 'google' && isset($attributes['blockFontFamily']['value']))
40 + if (isset($attributes['blockFontType']) && isset($attributes['blockFontFamily']) && $attributes['blockFontType'] === 'google')
44 41 {
45 42 $fontWeight = isset($attributes['blockFontWeight']) ? $attributes['blockFontWeight'] : 400;
46 43 $fontFamily = $attributes['blockFontFamily']['value'];
47 44