Fixed Blocks Asset Constant Path

This commit is contained in:
Christopher Allford 2023-12-09 21:20:21 -08:00
parent 25d42b0c05
commit cf357e809b
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export const blocksConfig = getSetting( 'wcBlocksConfig', {
} ) as WcBlocksConfig;
export const WC_BLOCKS_IMAGE_URL = blocksConfig.pluginUrl + 'images/';
export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'build/';
export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'assets/client/blocks/';
export const WC_BLOCKS_PHASE = blocksConfig.buildPhase;
export const SHOP_URL = STORE_PAGES.shop?.permalink;
export const CHECKOUT_PAGE_ID = STORE_PAGES.checkout?.id;

View File

@ -103,7 +103,7 @@ class Api {
* Get the path to a block's metadata
*
* @param string $block_name The block to get metadata for.
* @param string $path Optional. The path to the metadata file inside the 'build' folder.
* @param string $path Optional. The path to the metadata file inside the 'assets/client/blocks' folder.
*
* @return string|boolean False if metadata file is not found for the block.
*/