Revert the use of prop here as we want to remove the attribute completely closes #30282

This commit is contained in:
roykho 2021-07-28 10:56:55 -07:00 committed by And Finally
parent a99955a7b6
commit b991b4c511
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ jQuery(
'select[name="_visibility"] option, ' +
'select[name="_stock_status"] option, ' +
'select[name="_backorders"] option'
).prop( 'selected', false );
).removeAttr( 'selected' );
var is_variable_product = 'variable' === product_type;
$( 'select[name="_stock_status"] ~ .wc-quick-edit-warning', '.inline-edit-row' ).toggle( is_variable_product );