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 <github-actions@github.com>
This commit is contained in:
Alba Rincón 2024-08-14 12:10:16 +02:00 committed by GitHub
parent 006fbc6714
commit a512668e96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
Add to Cart with Options - Fix translation when used inside the Single Product block.

View File

@ -424,7 +424,6 @@ final class BlockTypesController {
$block_types = array_diff( $block_types = array_diff(
$block_types, $block_types,
array( array(
'AddToCartForm',
'Breadcrumbs', 'Breadcrumbs',
'CatalogSorting', 'CatalogSorting',
'ClassicTemplate', 'ClassicTemplate',