Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()

This commit is contained in:
Marco Almeida 2019-08-29 08:43:42 +01:00 committed by GitHub
parent 386e4e6e7a
commit 7dc5f0d4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ final class WC_Cart_Session {
// If this is a re-order, redirect to the cart page to get rid of the `order_again` query string.
if ( $order_again ) {
wp_safe_redirect( wc_get_page_permalink( 'cart' ) );
wp_safe_redirect( wc_get_cart_url() );
exit;
}
}