We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be3be4f commit 64dd5a9Copy full SHA for 64dd5a9
src/Block.php
@@ -223,7 +223,7 @@ public function attrsAsString()
223
$attrs = [];
224
225
foreach ($this->attrs as $key => $value) {
226
- $value = addslashes($value);
+ $value = addslashes($value ?? '');
227
$attrs[] = "$key=\"$value\"";
228
}
229
@@ -263,7 +263,7 @@ public function spawnClones()
263
{
264
$this->clones = [];
265
266
- $themes = explode(',', $this->theme);
+ $themes = explode(',', $this->theme ?? '');
267
268
// Set the theme for the current block, so that we
269
// don't break the reference to it.
0 commit comments