Fix: Use `register_block_type_from_metadata` function (https://github.com/woocommerce/woocommerce-blocks/pull/6511)
This commit is contained in:
parent
f38e0819ad
commit
fb84599f42
|
@ -210,7 +210,7 @@ abstract class AbstractBlock {
|
|||
$metadata_path = $this->asset_api->get_block_metadata_path( $this->block_name );
|
||||
// Prefer to register with metadata if the path is set in the block's class.
|
||||
if ( ! empty( $metadata_path ) ) {
|
||||
register_block_type(
|
||||
register_block_type_from_metadata(
|
||||
$metadata_path,
|
||||
$block_settings
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue