Show correct confirmation message when removing an attribute from a product (#38355)

This commit is contained in:
Matt Sherman 2023-05-19 08:27:47 -04:00 committed by GitHub
parent c99d60647e
commit 2992e22507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Show correct confirmation message when removing an attribute from a product.

View File

@ -646,7 +646,7 @@ jQuery( function ( $ ) {
var $parent = $( this ).parent().parent();
var confirmMessage = $parent
.find( 'input[name^="attribute_variation"]' )
.is( ':checked' )
.is( ':visible:checked' )
? woocommerce_admin_meta_boxes.i18n_remove_used_attribute_confirmation_message
: woocommerce_admin_meta_boxes.remove_attribute;