Woocommerce 3.0.0 Support

This commit is contained in:
Jason King 2017-04-14 20:20:10 +09:30 committed by GitHub
parent e2267f9178
commit c972b7dbd6
1 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
/** /**
* Loop Add to Cart * Loop Add to Cart
* * Updated for Understrap to maintain Woocommerce 3.0.3 compatability.
* This template can be overridden by copying it to yourtheme/woocommerce/loop/add-to-cart.php. * This template can be overridden by copying it to yourtheme/woocommerce/loop/add-to-cart.php.
* *
* HOWEVER, on occasion WooCommerce will need to update template files and you * HOWEVER, on occasion WooCommerce will need to update template files and you
@ -13,7 +13,7 @@
* @see https://docs.woocommerce.com/document/template-structure/ * @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes * @author WooThemes
* @package WooCommerce/Templates * @package WooCommerce/Templates
* @version 2.5.0 * @version 3.0.0
*/ */
if ( ! defined( 'ABSPATH' ) ) { if ( ! defined( 'ABSPATH' ) ) {
@ -28,8 +28,6 @@ echo apply_filters( 'woocommerce_loop_add_to_cart_link',
esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( isset( $quantity ) ? $quantity : 1 ),
esc_attr( $product->id ), esc_attr( $product->id ),
esc_attr( $product->get_sku() ), esc_attr( $product->get_sku() ),
// TODO: load add to cart button class from customizer?
// esc_attr( isset( $class ) ? $class : 'button' ),
esc_html( $product->add_to_cart_text() ) esc_html( $product->add_to_cart_text() )
), ),
$product ); $product );