Skip to content

Commit

Permalink
Update includes/Data/ContentBlocksResolver.php
Browse files Browse the repository at this point in the history
Co-authored-by: Alex K. <[email protected]>
  • Loading branch information
theodesp and whoami-pwd authored Jan 21, 2025
1 parent 98ec644 commit 4f0779a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 ( 'core/navigation' !== $block['blockName'] || ! isset( $block['attrs']['ref'] ) ) {
if ( ($block['blockName'] ?? '') !== 'core/navigation' || ! isset( $block['attrs']['ref'] ) ) {
return $block;
}

Expand Down

0 comments on commit 4f0779a

Please sign in to comment.