Use array_merge instead of array unpacking
This commit is contained in:
parent
60835892c0
commit
f78d86d5de
|
@ -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_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');
|
wp_enqueue_script('video.js', 'https://unpkg.com/video.js/dist/video.min.js');
|
||||||
|
|
||||||
$params = [
|
$params = array_merge([
|
||||||
'host' => 'stream.openfest.org',
|
'host' => 'stream.openfest.org',
|
||||||
'track' => 'hall-a',
|
'track' => 'hall-a',
|
||||||
...$params,
|
], $params);
|
||||||
];
|
|
||||||
|
|
||||||
$urlPrefix = 'https://' . $params['host'] . '/';
|
$urlPrefix = 'https://' . $params['host'] . '/';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue