Escape proceed-to-checkout-button.php template
This commit is contained in:
parent
969d678ab5
commit
c63faa76a8
|
@ -4,19 +4,13 @@
|
|||
*
|
||||
* Contains the markup for the proceed to checkout button on the cart
|
||||
*
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.4.0
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.4.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$checkout_url = WC()->cart->get_checkout_url();
|
||||
|
||||
echo '<a href="' . $checkout_url . '" class="checkout-button button alt wc-forward">' . __( 'Proceed to Checkout', 'woocommerce' ) . '</a>';
|
||||
?>
|
||||
echo '<a href="' . esc_url( WC()->cart->get_checkout_url() ) . '" class="checkout-button button alt wc-forward">' . __( 'Proceed to Checkout', 'woocommerce' ) . '</a>';
|
||||
|
|
Loading…
Reference in New Issue