From b991b4c511119dbd247500adf11effcdbbfc210b Mon Sep 17 00:00:00 2001 From: roykho Date: Wed, 28 Jul 2021 10:56:55 -0700 Subject: [PATCH] Revert the use of prop here as we want to remove the attribute completely closes #30282 --- assets/js/admin/quick-edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/quick-edit.js b/assets/js/admin/quick-edit.js index c15b76f580d..30ec8d699ea 100644 --- a/assets/js/admin/quick-edit.js +++ b/assets/js/admin/quick-edit.js @@ -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 );