Escape proceed-to-checkout-button.php template

This commit is contained in:
Claudio Sanches 2015-07-10 16:42:33 -03:00
parent 969d678ab5
commit c63faa76a8
1 changed files with 4 additions and 10 deletions

View File

@ -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>';