From 9a2d8f17535885b3a694c6762daf68e905aecd86 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 23 Mar 2018 12:32:37 -0600 Subject: [PATCH] Update add-to-cart Updates to current Woo source template; I thought these were Understrap edits, but when looking through file history on Woo repo I dicovered these changes were made by Woo. --- woocommerce/loop/add-to-cart.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/woocommerce/loop/add-to-cart.php b/woocommerce/loop/add-to-cart.php index ccd35c1..02af0c1 100644 --- a/woocommerce/loop/add-to-cart.php +++ b/woocommerce/loop/add-to-cart.php @@ -23,12 +23,10 @@ if ( ! defined( 'ABSPATH' ) ) { global $product; echo apply_filters( 'woocommerce_loop_add_to_cart_link', // WPCS: XSS ok. - sprintf( '
%s
', + sprintf( '
%s
', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ), - $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', - esc_attr( $product->get_type() ), - $product->get_type() == 'simple' ? 'ajax_add_to_cart' : '', + esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ), isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '', esc_html( $product->add_to_cart_text() ) ),