Skip to content

Commit

Permalink
WDSUS-46 - Fix php error
Browse files Browse the repository at this point in the history
  • Loading branch information
khleomix committed Oct 11, 2023
1 parent 18e2792 commit 600ed27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/hooks/register-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
* @return void
*/
function register_blocks() {
// Define the ROOT_PATH constant.
define( 'WDS_ROOT_PATH', get_template_directory() . '/' );

// Get the paths of all block configuration files.
$block_config_files = glob( ROOT_PATH . 'blocks/*/build/block.json' );
$block_config_files = glob( WDS_ROOT_PATH . 'blocks/*/build/block.json' );

foreach ( $block_config_files as $block_config_file ) {
// Register each block type using its configuration file.
Expand Down

0 comments on commit 600ed27

Please sign in to comment.