Update product name validation message (#47846)
* Update product name validation message * Add changelog
This commit is contained in:
parent
8894850ce1
commit
890fd87e7e
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update product name validation message #47846
|
|
@ -83,7 +83,7 @@ export function NameBlockEdit( {
|
||||||
'name',
|
'name',
|
||||||
async function nameValidator() {
|
async function nameValidator() {
|
||||||
if ( ! name || name === AUTO_DRAFT_NAME ) {
|
if ( ! name || name === AUTO_DRAFT_NAME ) {
|
||||||
return __( 'Name field is required.', 'woocommerce' );
|
return __( 'Product name is required.', 'woocommerce' );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( name.length > 120 ) {
|
if ( name.length > 120 ) {
|
||||||
|
|
Loading…
Reference in New Issue