Skip to content

Commit

Permalink
fixed get_meta_value_by_block method to not crash if no meta available
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Apr 18, 2024
1 parent f67f35c commit d183aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ private function get_meta_value_by_id( $name, $id = false ) {
* @return mixed
*/
private function get_meta_value_by_block( $name, $block_data ) {
$result = $block_data[ $name ];
$result = $block_data[ $name ] ?? null;

return $this->get_meta_value( $name, $result );
}
Expand Down

0 comments on commit d183aed

Please sign in to comment.