Change tempalte ID when loading the mini cart template part (https://github.com/woocommerce/woocommerce-blocks/pull/5916)

This commit is contained in:
Tom Cafferkey 2022-02-22 10:24:50 +00:00 committed by GitHub
parent 858fffd697
commit 94b2d95693
1 changed files with 1 additions and 1 deletions

View File

@ -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 );