Skip to content

Commit

Permalink
Remove always-true subscription-gifting feature flag (#98315)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr authored Jan 14, 2025
1 parent e3c0cdb commit 798a0f6
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions client/sites/settings/site/subscription-gifting.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { isEnabled } from '@automattic/calypso-config';
import { WPCOM_FEATURES_SUBSCRIPTION_GIFTING } from '@automattic/calypso-products/src';
import { Button, CompactCard } from '@automattic/components';
import { ToggleControl } from '@wordpress/components';
Expand Down Expand Up @@ -26,7 +25,7 @@ export default function SubscriptionGiftingForm( {
);
const isWpcomStagingSite = useSelectedSiteSelector( isSiteWpcomStaging );

if ( ! isEnabled( 'subscription-gifting' ) || ! hasSubscriptionGifting || isWpcomStagingSite ) {
if ( ! hasSubscriptionGifting || isWpcomStagingSite ) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion config/development.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@
"stats/paid-wpcom-v3": true,
"stepper-woocommerce-poc": true,
"subscriber-importer": true,
"subscription-gifting": true,
"themes/block-theme-previews-premium-and-woo": true,
"themes/discovery": true,
"themes/premium": true,
Expand Down
1 change: 0 additions & 1 deletion config/horizon.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@
"stats/paid-wpcom-v2": true,
"stepper-woocommerce-poc": true,
"subscriber-importer": true,
"subscription-gifting": true,
"themes/block-theme-previews-premium-and-woo": true,
"themes/discovery": true,
"themes/premium": true,
Expand Down
1 change: 0 additions & 1 deletion config/production.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
"stats/paid-wpcom-v3": true,
"stepper-woocommerce-poc": true,
"subscriber-importer": true,
"subscription-gifting": true,
"themes/block-theme-previews-premium-and-woo": true,
"themes/discovery": true,
"themes/premium": true,
Expand Down
1 change: 0 additions & 1 deletion config/stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@
"stats/paid-wpcom-v3": true,
"stepper-woocommerce-poc": true,
"subscriber-importer": true,
"subscription-gifting": true,
"themes/block-theme-previews-premium-and-woo": true,
"themes/discovery": true,
"themes/premium": true,
Expand Down
1 change: 0 additions & 1 deletion config/wpcalypso.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@
"stats/paid-wpcom-v3": true,
"stepper-woocommerce-poc": true,
"subscriber-importer": true,
"subscription-gifting": true,
"themes/block-theme-previews-premium-and-woo": true,
"themes/discovery": true,
"themes/premium": true,
Expand Down

0 comments on commit 798a0f6

Please sign in to comment.