14 lines
361 B
PHP
14 lines
361 B
PHP
foreach ( $inner_blocks as $block ) {
|
|
if ( 'core/post-featured-image' === $block->name ) {
|
|
return true;
|
|
}
|
|
if (
|
|
'core/cover' === $block->name &&
|
|
! empty( $block->attributes['useFeaturedImage'] )
|
|
) {
|
|
return true;
|
|
}
|
|
if ( $block->inner_blocks && block_core_post_template_uses_featured_image( $block->inner_blocks ) ) {
|
|
return true;
|
|
}
|
|
} |