From f78d86d5de1157db7dd985ef5854d6640b28ffe2 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Wed, 30 Oct 2024 23:59:09 +0200 Subject: [PATCH] Use array_merge instead of array unpacking --- functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 5aceb6d..914653f 100644 --- a/functions.php +++ b/functions.php @@ -208,11 +208,10 @@ function stream_player_shortcode($params = []) { wp_enqueue_style('video.js', 'https://unpkg.com/video.js/dist/video-js.css'); wp_enqueue_script('video.js', 'https://unpkg.com/video.js/dist/video.min.js'); - $params = [ + $params = array_merge([ 'host' => 'stream.openfest.org', 'track' => 'hall-a', - ...$params, - ]; + ], $params); $urlPrefix = 'https://' . $params['host'] . '/';