Replaced `WC_Product` with `WC_Product_Variation` for a more specific check in WC_Product_Variable::get_available_variation().
This commit is contained in:
parent
da5e31ce2c
commit
7e05af1296
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue