Skip to content

Commit

Permalink
Fix embed
Browse files Browse the repository at this point in the history
  • Loading branch information
winkelco authored Oct 25, 2022
1 parent 5b95e11 commit 4b2a1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function render(): string
$output = call_user_func($blockType->renderCallback, $this->attributes, $output, $this);
}

if ($this->blockName === 'core/embed') {
if (strpos($this->blockName, 'embed') !== false) {
$output = $this->embed($output);
}

Expand Down

0 comments on commit 4b2a1fb

Please sign in to comment.