Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Wrong PHP function 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Jun 16, 2022
1 parent a2ca293 commit afe04dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block-hydration-experiments.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function bhe_block_wrapper( $block_content, $block, $instance ) {
"source" => $definition['source']
);
} else {
if ( in_array ( $attr, $block['attrs'], true ) ) {
if ( array_key_exists ( $attr, $block['attrs'] ) ) {
$attributes[ $attr ] = $block['attrs'][$attr];
} else if ( isset( $definition['default'] ) ) {
$attributes[ $attr ] = $definition['default'];
Expand Down

0 comments on commit afe04dd

Please sign in to comment.