From 0e91c42e892ff2bfcd1854137d3feefb0ab4bc92 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Fri, 15 Dec 2023 12:33:26 +0200 Subject: [PATCH] Update $base_url parameter since the block location changed. --- platforms/php/build.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/php/build.php b/platforms/php/build.php index cd4fd62..bdf92cf 100644 --- a/platforms/php/build.php +++ b/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, '' ] ); } ); }