Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()

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

View File

@ -22,4 +22,4 @@ defined( 'ABSPATH' ) || exit;
<?php do_action( 'woocommerce_cart_has_errors' ); ?>
<p><a class="button wc-backward" href="<?php echo esc_url( wc_get_page_permalink( 'cart' ) ); ?>"><?php esc_html_e( 'Return to cart', 'woocommerce' ); ?></a></p>
<p><a class="button wc-backward" href="<?php echo esc_url( wc_get_cart_url() ); ?>"><?php esc_html_e( 'Return to cart', 'woocommerce' ); ?></a></p>