Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Subscriptions: do not display warning in the Newsletter panel when a WordPress.com site is marked as private.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { getRedirectUrl } from '@automattic/jetpack-components';
import {
getSiteFragment,
isComingSoon,
isPrivateSite,
useAnalytics,
} from '@automattic/jetpack-shared-extension-utils';
import { JetpackEditorPanelLogo } from '@automattic/jetpack-shared-extension-utils/components';
Expand Down Expand Up @@ -194,9 +193,8 @@ export default function SubscribePanels() {
return null;
}

// Subscriptions will not be triggered on private sites ( on WordPress.com simple and WoA ),
// nor on sites that have not been launched yet.
if ( isPrivateSite() || isComingSoon() ) {
// Subscriptions will not be triggered on WordPress.com sites that have not been launched yet.
if ( isComingSoon() ) {
return <NewsletterDisabledPanels />;
}

Expand Down
Loading