Skip to content

Commit

Permalink
Prevent fatal when rendering global blocks due to no passed blockName
Browse files Browse the repository at this point in the history
  • Loading branch information
Indrek Kõnnussaar committed Dec 6, 2020
1 parent 40cf5ab commit c5232ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function getBuilder($postId = null, $blockName = null)
$postId = $this->resolvePostId($postId);

if (!isset($this->builders[$postId])) {
if (!$this->building) {
if (!$this->building || $postId === 'option') {
$this->building = true;
$this->builders[$postId] = $this->createContentBuilder($postId);
} else {
Expand Down

0 comments on commit c5232ef

Please sign in to comment.