Skip to content

Commit

Permalink
Update WC Cart URL
Browse files Browse the repository at this point in the history
Fixes WC notice:

> Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead
  • Loading branch information
AlexGStapleton authored Nov 4, 2017
1 parent bc9a0ff commit 47069f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<?php global $woocommerce; ?>
<ul class="shopping-cart">
<li>
<a class="shopping-cart-link" href="<?php echo $woocommerce->cart->get_cart_url();?>">
<a class="shopping-cart-link" href="<?php echo esc_url( wc_get_cart_url() ); ?>">
<span class="screen-reader-text"><?php esc_html_e( 'View shopping cart', 'siteorigin-north' ); ?></span>
<span class="north-icon-cart"></span>
<span class="shopping-cart-text"><?php esc_html_e( ' View Cart ', 'siteorigin-north' ); ?></span>
Expand Down

0 comments on commit 47069f3

Please sign in to comment.