diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 31baf119ff..323719efc4 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -1589,7 +1589,7 @@ function unregister_block_style( $block_name, $block_style_name ) { */ function block_has_support( $block_type, $feature, $default_value = false ) { $block_support = $default_value; - if ( $block_type && property_exists( $block_type, 'supports' ) ) { + if ( $block_type instanceof WP_Block_Type ) { if ( is_array( $feature ) && count( $feature ) === 1 ) { $feature = $feature[0]; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 34dc5d625a..ba30f73008 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56677'; +$wp_version = '6.4-alpha-56678'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.