From 0ba8f7848df7c6930924d33ee63d5a349d978069 Mon Sep 17 00:00:00 2001 From: Tom Cafferkey Date: Wed, 20 Dec 2023 15:26:21 +0000 Subject: [PATCH] Block Hooks API: Add Amulet theme to the list of allowed themes for Mini Cart auto-insertion (#42899) Co-authored-by: github-actions --- .../changelog/42899-add-amulet-theme-auto-insert-mini-cart | 4 ++++ plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/42899-add-amulet-theme-auto-insert-mini-cart diff --git a/plugins/woocommerce/changelog/42899-add-amulet-theme-auto-insert-mini-cart b/plugins/woocommerce/changelog/42899-add-amulet-theme-auto-insert-mini-cart new file mode 100644 index 00000000000..8d94474a480 --- /dev/null +++ b/plugins/woocommerce/changelog/42899-add-amulet-theme-auto-insert-mini-cart @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Auto-inserts Mini Cart block into Amulet theme headers patterns and template parts. \ No newline at end of file diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php b/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php index c0f0750b8e7..94b173b382f 100644 --- a/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php +++ b/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php @@ -609,7 +609,7 @@ class MiniCart extends AbstractBlock { * * @since $VID:$ */ - $theme_include_list = apply_filters( 'woocommerce_blocks_mini_cart_auto_insert_theme_include_list', array( 'Twenty Twenty-Four', 'Twenty Twenty-Three', 'Twenty Twenty-Two', 'Tsubaki', 'Zaino', 'Thriving Artist' ) ); + $theme_include_list = apply_filters( 'woocommerce_blocks_mini_cart_auto_insert_theme_include_list', array( 'Twenty Twenty-Four', 'Twenty Twenty-Three', 'Twenty Twenty-Two', 'Tsubaki', 'Zaino', 'Thriving Artist', 'Amulet' ) ); if ( $context && in_array( $active_theme_name, $theme_include_list, true ) ) { if (