Removed unused variable
$variation_data = array_map( 'urlencode', $this->get_variation_attributes() );
This commit is contained in:
parent
5f63f81b72
commit
168b5e2833
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue