PluginProbe
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment / 3.0.1
FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin & Cart Abandonment v3.0.1
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 +3 -6 trunk3.0.1 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * @package FireBox
4 - * @version 3.1.13 Free
4 + * @version 3.0.1 Free
5 5 *
6 6 * @author FirePlugins <info@fireplugins.com>
7 7 * @link https://www.fireplugins.com
8 - * @copyright Copyright © 2026 FirePlugins All Rights Reserved
8 + * @copyright Copyright © 2025 FirePlugins All Rights Reserved
9 9 * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
10 10 */
11 11
12 12 namespace FireBox\Core\Blocks;
@@ -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