Skip to content

Commit

Permalink
prevent warnings if value doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
vancoder committed Dec 9, 2024
1 parent 92e9640 commit 64e5287
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 @@ -209,7 +209,7 @@ public function __construct( $data, $post_id, $registry, $order, $parent ) {

$this->name = $data['blockName'];
$this->postId = $post_id;
$this->blockType = $registry[ $this->name ];
$this->blockType = $registry[ $this->name ] ?? null;
$this->originalContent = self::strip_newlines( $data['innerHTML'] );
$this->saveContent = self::parse_inner_content( $data );
$this->order = $order;
Expand Down

0 comments on commit 64e5287

Please sign in to comment.