Skip to content

Commit 4f0779a

Browse files
theodespwhoami-pwd
andauthored
Update includes/Data/ContentBlocksResolver.php
Co-authored-by: Alex K. <[email protected]>
1 parent 98ec644 commit 4f0779a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Data/ContentBlocksResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private static function populate_post_content_inner_blocks( array $block ): arra
251251
* @return array<string,mixed> The populated block.
252252
*/
253253
private static function populate_navigation_blocks( array $block ): array {
254-
if ( 'core/navigation' !== $block['blockName'] || ! isset( $block['attrs']['ref'] ) ) {
254+
if ( ($block['blockName'] ?? '') !== 'core/navigation' || ! isset( $block['attrs']['ref'] ) ) {
255255
return $block;
256256
}
257257

0 commit comments

Comments
 (0)