Skip to content

Commit

Permalink
Merge pull request #73 from moderntribe/fix/update-block-registration…
Browse files Browse the repository at this point in the history
…-function

[FIX] update block registration function
  • Loading branch information
GeoffDusome authored Jul 28, 2023
2 parents 6ee433c + 39447ed commit b1f9675
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wp-content/plugins/core/src/Blocks/Block_Registrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ public function register( string $block_name, string $blocks_dir = self::BLOCKS_
];
}

register_block_type(
trailingslashit( get_stylesheet_directory() ) . $blocks_dir . $block_name . '/block.json',
$args
);
register_block_type_from_metadata( trailingslashit( get_stylesheet_directory() ) . $blocks_dir . $block_name . '/block.json', $args );
}

/**
Expand Down

0 comments on commit b1f9675

Please sign in to comment.