Skip to content

Commit

Permalink
fix: wfp promo not checking for donation page
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Nov 12, 2024
1 parent 9648528 commit 54d7d4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/Promotions.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ private function get_promotions() {
$has_hyve_conditions = version_compare( get_bloginfo( 'version' ), '6.2', '>=' ) && $this->has_support_page();
$has_wfp_full_pay = defined( 'WP_FULL_STRIPE_BASENAME' ) || $this->is_plugin_installed( 'wp-full-stripe-free' );
$had_wfp_from_promo = get_option( $this->option_wp_full_pay, false );
$has_wfp_conditions = $this->has_donate_page();
$is_min_req_v = version_compare( get_bloginfo( 'version' ), '5.8', '>=' );
$current_theme = wp_get_theme();
$has_neve = $current_theme->template === 'neve' || $current_theme->parent() === 'neve';
Expand Down Expand Up @@ -490,7 +491,7 @@ private function get_promotions() {
],
'wp_full_pay' => [
'wp-full-pay-plugins-install' => [
'env' => ! $has_wfp_full_pay && ! $had_wfp_from_promo,
'env' => ! $has_wfp_full_pay && ! $had_wfp_from_promo && $has_wfp_conditions,
'screen' => 'plugin-install',
],
],
Expand Down

0 comments on commit 54d7d4b

Please sign in to comment.