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:
louwie17 2022-01-06 18:15:08 -04:00 committed by GitHub
parent 9f107352ad
commit 0e3286772e
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: Fix
Fix blank payment gateway method in table when WooCommerce Payments is not supported. #8122

View File

@ -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;
}