mirror of
https://github.com/Automattic/wordpress-activitypub
synced 2024-10-18 12:23:32 +00:00
check for do_blocks
This commit is contained in:
parent
7ca9a581c4
commit
cfb6345ffd
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue