Ensure simple second argument for priority is also supported in multi-collections with params (fixes #3358)

This commit is contained in:
Djamil Legato
2021-06-14 10:25:01 -07:00
parent 845fac8adf
commit ee40ad59f2

View File

@@ -168,6 +168,9 @@ class Assets extends PropertyObject
array_shift($args);
if (is_array($location)) {
$args = array_shift($args);
if (is_numeric($args)) {
$args = [ 'priority' => $args ];
}
$args = [array_replace_recursive([], $location, $args)];
$location = $index;
}