From 94b2d95693831a2970b8c6a6ffc3c9d3eb009ebe Mon Sep 17 00:00:00 2001 From: Tom Cafferkey Date: Tue, 22 Feb 2022 10:24:50 +0000 Subject: [PATCH] Change tempalte ID when loading the mini cart template part (https://github.com/woocommerce/woocommerce-blocks/pull/5916) --- plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php b/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php index dbe10e3624a..da511dc68a8 100644 --- a/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php +++ b/plugins/woocommerce-blocks/src/BlockTypes/MiniCart.php @@ -377,7 +377,7 @@ class MiniCart extends AbstractBlock { } $template_part_contents = ''; - $template_part = BlockTemplateUtils::get_block_template( get_stylesheet() . '//mini-cart', 'wp_template_part' ); + $template_part = BlockTemplateUtils::get_block_template( BlockTemplateUtils::PLUGIN_SLUG . '//mini-cart', 'wp_template_part' ); if ( $template_part && ! empty( $template_part->content ) ) { $template_part_contents = do_blocks( $template_part->content );