Merge pull request #32427 from leskam/patch-2
correct form redirect after save account details
This commit is contained in:
commit
d56c79605c
|
@ -347,7 +347,7 @@ class WC_Form_Handler {
|
|||
|
||||
do_action( 'woocommerce_save_account_details', $user->ID );
|
||||
|
||||
wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
|
||||
wp_safe_redirect( wc_get_endpoint_url( 'edit-account', '', wc_get_page_permalink( 'myaccount' ) ) );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue