Revert "add_to_cart_url filter added in loop/add-to-cart.php"

This reverts commit 174ccfadd2.
This commit is contained in:
Manos Psychogyiopoulos 2012-07-06 15:25:48 +03:00
parent cb73f90b57
commit 7a5ff38af7
1 changed files with 7 additions and 7 deletions

View File

@ -30,8 +30,8 @@ if( $product->get_price() === '' && $product->product_type != 'external' ) retur
$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;
}