Fix duplicate description when editing the product summary (#40853)

* Fix duplicate description when editing the product summary

* Add changelog file
This commit is contained in:
Maikel David Pérez Gómez 2023-10-18 15:31:09 -04:00 committed by GitHub
parent c616e0c7c9
commit e302d4cac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix duplicate description when editing the product summary

View File

@ -137,7 +137,7 @@ class ProductVariationTemplate extends AbstractProductFormTemplate implements Pr
'attributes' => [
'property' => 'description',
'label' => __( 'Note <optional />', 'woocommerce' ),
'helpText' => '',
'helpText' => 'Enter an optional note displayed on the product page when customers select this variation.',
],
]
);

View File

@ -152,7 +152,7 @@ class SimpleProductTemplate extends AbstractProductFormTemplate implements Produ
'blockName' => 'woocommerce/product-summary-field',
'order' => 20,
'attributes' => [
'property' => 'description',
'property' => 'short_description',
],
]
);