Fix: Use `register_block_type_from_metadata` function (https://github.com/woocommerce/woocommerce-blocks/pull/6511)

This commit is contained in:
Tung Du 2022-06-03 10:10:08 +07:00 committed by GitHub
parent f38e0819ad
commit fb84599f42
1 changed files with 1 additions and 1 deletions

View File

@ -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
);