From 4d32ef0dac5e038d231a02762651bb5253fb7f8e Mon Sep 17 00:00:00 2001 From: Jonathan Sadowski Date: Wed, 9 Jun 2021 16:06:18 -0500 Subject: [PATCH] Fix issue with jQuery migration and editing addresses in wp-admin --- assets/js/admin/meta-boxes-order.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/meta-boxes-order.js b/assets/js/admin/meta-boxes-order.js index f108dff0ec6..e08d92e0437 100644 --- a/assets/js/admin/meta-boxes-order.js +++ b/assets/js/admin/meta-boxes-order.js @@ -140,7 +140,7 @@ jQuery( function ( $ ) { is_billing = Boolean( $edit_address.find( 'input[name^="_billing_"]' ).length ); $address.hide(); - $this.parent().find( 'a' ).trigger( 'toggle' ); + $this.parent().find( 'a' ).toggle(); if ( ! $country_input.val() ) { $country_input.val( woocommerce_admin_meta_boxes_order.default_country ).trigger( 'change' );