Skip to content

Commit

Permalink
chore: revert coercion check
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Jan 21, 2025
1 parent 550aaf4 commit 61b1ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Data/ContentBlocksResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private static function populate_post_content_inner_blocks( array $block ): arra
* @return array<string,mixed> The populated block.
*/
private static function populate_navigation_blocks( array $block ): array {
if ( ( $block['blockName'] ?? '' ) !== 'core/navigation' || ! isset( $block['attrs']['ref'] ) ) {
if ( 'core/navigation' !== $block['blockName'] || ! isset( $block['attrs']['ref'] ) ) {
return $block;
}

Expand Down Expand Up @@ -379,7 +379,7 @@ private static function filter_allowed_blocks( array $blocks, array $allowed_blo

return array_filter(
$blocks,
static function ( $block ) use ($allowed_block_names) {
static function ( $block ) use ( $allowed_block_names ) {
return in_array( $block['blockName'], $allowed_block_names, true );
}
);
Expand Down

0 comments on commit 61b1ccf

Please sign in to comment.