From 7b201aad583ace68a2a832eafaae946d7cbb69b9 Mon Sep 17 00:00:00 2001 From: Kathy Darling Date: Mon, 23 Jun 2014 10:04:03 -0500 Subject: [PATCH] change is_purchasable() args to match regular product --- includes/class-wc-product-variation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-product-variation.php b/includes/class-wc-product-variation.php index 79f6bc93d80..3f29f7f5047 100644 --- a/includes/class-wc-product-variation.php +++ b/includes/class-wc-product-variation.php @@ -255,7 +255,7 @@ class WC_Product_Variation extends WC_Product { else $purchasable = parent::is_purchasable(); - return apply_filters( 'woocommerce_variation_is_purchasable', $purchasable, $this->variation_id, $this->id ); + return apply_filters( 'woocommerce_variation_is_purchasable', $purchasable, $this ); } /**