Browse Source

Update $base_url parameter since the block location changed.

wordpress-build
Roman Axelrod 2 years ago
parent
commit
0e91c42e89
  1. 4
      platforms/php/build.php

4
platforms/php/build.php

@ -71,8 +71,8 @@ class Component_Builder {
$this->register_default_handlebar_helpers();
$this->add_handlebar( 'base_url', function ( $context ) {
$path = join( '/', [ 'blocks', $this->block_project, $this->block_name, 'templates' ] );
return plugins_url( $path . '/', 'axeweb-blocks-library/axeweb-blocks-library.php' );
$path = join( '/', [ $this->block_project, $this->block_name, 'templates' ] );
return join( '/', [ get_site_url(),'wp-content', 'axe-web-blocks', $path, '' ] );
} );
}

Loading…
Cancel
Save