| @@ -1448,17 +1448,19 @@ | ||
| 1448 | 1448 | $atts = shortcode_atts([ |
| 1449 | 1449 | 'param' => '', |
| 1450 | 1450 | ], $atts); |
| 1451 | 1451 | |
| 1452 | + if ('' === $atts['param']) { | |
| 1453 | + return ''; | |
| 1454 | + } | |
| 1455 | + | |
| 1452 | 1456 | $value = $this->app->request->get($atts['param']); |
| 1453 | 1457 | |
| 1454 | - if ($atts['param'] && $value) { | |
| 1455 | - if (is_array($value)) { | |
| 1456 | - return implode(', ', $value); | |
| 1457 | - } | |
| 1458 | - return esc_html($value); | |
| 1458 | + if (null === $value || '' === $value) { | |
| 1459 | + return ''; | |
| 1459 | 1460 | } |
| 1460 | - return ''; | |
| 1461 | + | |
| 1462 | + return esc_html(Helper::flattenRequestValue($value)); | |
| 1461 | 1463 | }); |
| 1462 | 1464 | |
| 1463 | 1465 | $this->app->addShortcode('ff_entry',function($atts){ |
| 1464 | 1466 | ob_start(); |