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:
parent
f1be869ff4
commit
9995b51a5a
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Fix "Product Meta" translations - Register the block server side.
|
|
@ -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';
|
||||||
|
}
|
|
@ -336,6 +336,7 @@ final class BlockTypesController {
|
||||||
'ProductGalleryThumbnails',
|
'ProductGalleryThumbnails',
|
||||||
'ProductImage',
|
'ProductImage',
|
||||||
'ProductImageGallery',
|
'ProductImageGallery',
|
||||||
|
'ProductMeta',
|
||||||
'ProductNew',
|
'ProductNew',
|
||||||
'ProductOnSale',
|
'ProductOnSale',
|
||||||
'ProductPrice',
|
'ProductPrice',
|
||||||
|
|
Loading…
Reference in New Issue