Skip to content

Commit

Permalink
Do not return if _ppcp_enable_subscription_product not exist in the…
Browse files Browse the repository at this point in the history
… post request
  • Loading branch information
Dinamiko committed Sep 18, 2024
1 parent bf525bc commit 6a52957
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ public function run( ContainerInterface $c ): bool {
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;
}

Expand Down

0 comments on commit 6a52957

Please sign in to comment.