Replaced `WC_Product` with `WC_Product_Variation` for a more specific check in WC_Product_Variable::get_available_variation().

This commit is contained in:
Amritansh_tact9 2018-03-07 15:59:21 +05:30
parent da5e31ce2c
commit 7e05af1296
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class WC_Product_Variable extends WC_Product {
if ( is_numeric( $variation ) ) {
$variation = wc_get_product( $variation );
}
if ( ! $variation instanceof WC_Product ) {
if ( ! $variation instanceof WC_Product_Variation ) {
return false;
}
// See if prices should be shown for each variation after selection.