From a512668e964f7268fe5b2a3a048f6ad0ae3dca53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Wed, 14 Aug 2024 12:10:16 +0200 Subject: [PATCH] Fix `AddToCartForm` translation on the `Single Product` block (#50628) * Avoid registering block in the wrong context * Add changefile(s) from automation for the following project(s): woocommerce-blocks * Fix Product meta translations * Add changefile(s) from automation for the following project(s): woocommerce * Fix lint error * Remove AddToCartForm from the list of blocks to not register in posts * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions --- .../changelog/50628-fix-add-to-cart-form-translation | 4 ++++ plugins/woocommerce/src/Blocks/BlockTypesController.php | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 plugins/woocommerce/changelog/50628-fix-add-to-cart-form-translation diff --git a/plugins/woocommerce/changelog/50628-fix-add-to-cart-form-translation b/plugins/woocommerce/changelog/50628-fix-add-to-cart-form-translation new file mode 100644 index 00000000000..d51ceac9e78 --- /dev/null +++ b/plugins/woocommerce/changelog/50628-fix-add-to-cart-form-translation @@ -0,0 +1,4 @@ +Significance: minor +Type: fix + +Add to Cart with Options - Fix translation when used inside the Single Product block. \ No newline at end of file diff --git a/plugins/woocommerce/src/Blocks/BlockTypesController.php b/plugins/woocommerce/src/Blocks/BlockTypesController.php index 7a55c7166a7..ac2f5240c14 100644 --- a/plugins/woocommerce/src/Blocks/BlockTypesController.php +++ b/plugins/woocommerce/src/Blocks/BlockTypesController.php @@ -424,7 +424,6 @@ final class BlockTypesController { $block_types = array_diff( $block_types, array( - 'AddToCartForm', 'Breadcrumbs', 'CatalogSorting', 'ClassicTemplate',