Remove do_update_woocommerce query arg to prevent actions taken on it

This commit is contained in:
roykho 2021-01-05 14:16:46 -08:00
parent 4a2943d452
commit fac6d3a246
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class WC_Notes_Run_Db_Update {
'_nonce_action' => 'woocommerce_hide_notices_nonce',
'_nonce_name' => '_wc_notice_nonce',
),
wc_get_current_admin_url() ? wc_get_current_admin_url() : admin_url( 'admin.php?page=wc-settings' )
wc_get_current_admin_url() ? remove_query_arg( 'do_update_woocommerce', wc_get_current_admin_url() ) : admin_url( 'admin.php?page=wc-settings' )
)
);