check for do_blocks

This commit is contained in:
Matthias Pfefferle 2024-10-18 08:45:25 +02:00
parent 7ca9a581c4
commit cfb6345ffd

View file

@ -575,7 +575,10 @@ function site_supports_blocks() {
return false;
}
if ( ! \function_exists( 'register_block_type_from_metadata' ) ) {
if (
! \function_exists( 'register_block_type_from_metadata' ) ||
! \function_exists( 'do_blocks' )
) {
return false;
}