Check if WC Pay is supported before adding gateway (https://github.com/woocommerce/woocommerce-admin/pull/8122)
* Check if WC Pay is supported before adding gateway * Add changelog
This commit is contained in:
parent
9f107352ad
commit
0e3286772e
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: Fix
|
||||
|
||||
Fix blank payment gateway method in table when WooCommerce Payments is not supported. #8122
|
|
@ -106,6 +106,10 @@ class Init {
|
|||
return false;
|
||||
}
|
||||
|
||||
$wc_pay_spec = self::get_wc_pay_promotion_spec();
|
||||
if ( ! $wc_pay_spec ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue