From 7a5ff38af71b7055318a6e462829e4f5f10e2a74 Mon Sep 17 00:00:00 2001 From: Manos Psychogyiopoulos Date: Fri, 6 Jul 2012 15:25:48 +0300 Subject: [PATCH] Revert "add_to_cart_url filter added in loop/add-to-cart.php" This reverts commit 174ccfadd2973c52e6c39c63ee68e94cbbdae93e. --- templates/loop/add-to-cart.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/loop/add-to-cart.php b/templates/loop/add-to-cart.php index 7d26d29c643..056464d3701 100644 --- a/templates/loop/add-to-cart.php +++ b/templates/loop/add-to-cart.php @@ -10,7 +10,7 @@ if( $product->get_price() === '' && $product->product_type != 'external' ) retur is_in_stock() ) : ?> - + @@ -18,20 +18,20 @@ if( $product->get_price() === '' && $product->product_type != 'external' ) retur switch ( $product->product_type ) { case "variable" : - $link = get_permalink( $product->id ); - $label = apply_filters( 'variable_add_to_cart_text', __('Select options', 'woocommerce') ); + $link = get_permalink($product->id); + $label = apply_filters('variable_add_to_cart_text', __('Select options', 'woocommerce')); break; case "grouped" : $link = get_permalink($product->id); - $label = apply_filters( 'grouped_add_to_cart_text', __('View options', 'woocommerce') ); + $label = apply_filters('grouped_add_to_cart_text', __('View options', 'woocommerce')); break; case "external" : $link = get_permalink($product->id); - $label = apply_filters( 'external_add_to_cart_text', __('Read More', 'woocommerce') ); + $label = apply_filters('external_add_to_cart_text', __('Read More', 'woocommerce')); break; default : - $link = apply_filters( 'add_to_cart_url', esc_url( $product->add_to_cart_url() ), $product ); - $label = apply_filters( 'add_to_cart_text', __('Add to cart', 'woocommerce'), $product ); + $link = esc_url( $product->add_to_cart_url() ); + $label = apply_filters('add_to_cart_text', __('Add to cart', 'woocommerce')); break; }