| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 3.1.13 Free | |
| 4 | + * @version 3.1.6 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 | |