| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FirePlugins Framework |
| 4 | - * @version 1.1.146 | |
| 4 | + * @version 1.2.6 | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | 8 | * @copyright Copyright © 2026 FirePlugins All Rights Reserved |
| @@ -17,9 +17,10 @@ | ||
| 17 | 17 | if ($position == 'start') |
| 18 | 18 | { |
| 19 | 19 | $showon = (!empty($this->data->get('showon', ''))) ? ' data-showon="' . esc_attr($this->data->get('showon', '')) . '"' : ''; |
| 20 | 20 | $style = $this->data->get('style', ''); |
| 21 | - $class = $this->data->get('class', []); | |
| 21 | + // implode() throws a TypeError on non-arrays since PHP 8.0. | |
| 22 | + $class = \FPFramework\Helpers\FieldsHelper::toClassList($this->data->get('class')); | |
| 22 | 23 | ?><div class="<?php echo esc_attr(implode(' ', $class)); ?>"<?php echo wp_kses_data($showon); ?><?php echo $style ? ' style="' . esc_attr($style) . '"' : ''; ?>> |
| 23 | 24 | <?php |
| 24 | 25 | return; |
| 25 | 26 | } |