Update deprecated jQuery functions for quick-edit.js

This commit is contained in:
roykho 2021-02-04 09:10:39 -08:00 committed by Jonathan Sadowski
parent 58cfd4c0c2
commit 81d6e50bbd
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ jQuery(
'select[name="_visibility"] option, ' +
'select[name="_stock_status"] option, ' +
'select[name="_backorders"] option'
).removeAttr( 'selected' );
).prop( 'selected', false );
var is_variable_product = 'variable' === product_type;
$( 'select[name="_stock_status"] ~ .wc-quick-edit-warning', '.inline-edit-row' ).toggle( is_variable_product );
@ -72,7 +72,7 @@ jQuery(
if ( 'yes' === featured ) {
$( 'input[name="_featured"]', '.inline-edit-row' ).attr( 'checked', 'checked' );
} else {
$( 'input[name="_featured"]', '.inline-edit-row' ).removeAttr( 'checked' );
$( 'input[name="_featured"]', '.inline-edit-row' ).prop( 'checked', false );
}
// Conditional display.