mirror of
https://github.com/getgrav/grav.git
synced 2026-07-15 20:02:16 +02:00
Allow to unset an asset attribute by specifying null (ie, ’defer’ => null)
This commit is contained in:
@@ -156,6 +156,10 @@ trait AssetUtilsTrait
|
||||
$no_key = ['loading'];
|
||||
|
||||
foreach ($this->attributes as $key => $value) {
|
||||
if ($value === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_numeric($key)) {
|
||||
$key = $value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user