Fix `Product Meta` translations (#50625)

* 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

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Alba Rincón 2024-08-14 11:29:03 +02:00 committed by GitHub
parent f1be869ff4
commit 9995b51a5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
Fix "Product Meta" translations - Register the block server side.

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace Automattic\WooCommerce\Blocks\BlockTypes;
/**
* ProductMeta class.
*/
class ProductMeta extends AbstractBlock {
/**
* Block name.
*
* @var string
*/
protected $block_name = 'product-meta';
}

View File

@ -336,6 +336,7 @@ final class BlockTypesController {
'ProductGalleryThumbnails', 'ProductGalleryThumbnails',
'ProductImage', 'ProductImage',
'ProductImageGallery', 'ProductImageGallery',
'ProductMeta',
'ProductNew', 'ProductNew',
'ProductOnSale', 'ProductOnSale',
'ProductPrice', 'ProductPrice',