Removed unused variable

$variation_data = array_map( 'urlencode', $this->get_variation_attributes() );
This commit is contained in:
umesh.nevase 2017-04-27 23:59:16 +05:30
parent 5f63f81b72
commit 168b5e2833
1 changed files with 0 additions and 1 deletions

View File

@ -143,7 +143,6 @@ class WC_Product_Variation extends WC_Product_Simple {
* @return string
*/
public function add_to_cart_url() {
$variation_data = array_map( 'urlencode', $this->get_variation_attributes() );
$url = $this->is_purchasable() ? remove_query_arg( 'added-to-cart', add_query_arg( array( 'variation_id' => $this->get_id(), 'add-to-cart' => $this->get_parent_id() ), $this->get_permalink() ) ) : $this->get_permalink();
return apply_filters( 'woocommerce_product_add_to_cart_url', $url, $this );
}