Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix: Use register_block_type_from_metadata function (#6511)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu authored Jun 3, 2022
1 parent 661d0e2 commit 444b818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockTypes/AbstractBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ protected function register_block_type() {
$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
);
Expand Down

0 comments on commit 444b818

Please sign in to comment.