mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Do not return if _ppcp_enable_subscription_product
not exist in the post request
This commit is contained in:
parent
3d018945f4
commit
eb19f05226
1 changed files with 1 additions and 3 deletions
|
@ -66,9 +66,7 @@ class PayPalSubscriptionsModule implements ServiceModule, ExtendingModule, Execu
|
|||
function( $product_id ) use ( $c ) {
|
||||
$subscriptions_helper = $c->get( 'wc-subscriptions.helper' );
|
||||
assert( $subscriptions_helper instanceof SubscriptionHelper );
|
||||
|
||||
$connect_subscription = wc_clean( wp_unslash( $_POST['_ppcp_enable_subscription_product'] ?? '' ) );
|
||||
if ( ! $subscriptions_helper->plugin_is_active() || $connect_subscription !== 'yes' ) {
|
||||
if ( ! $subscriptions_helper->plugin_is_active() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue