Skip to content

Commit

Permalink
Newsletter: Update newsletter copies when the site is not public. (#4…
Browse files Browse the repository at this point in the history
…1387)

* Newsletter: Update panel copies when the site is not public.

* changelog

* Update check
  • Loading branch information
spsiddarthan authored Jan 30, 2025
1 parent d1095dd commit 5885330
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Updated text copies based on whether the site is public.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { isComingSoon } from '@automattic/jetpack-shared-extension-utils';
import { Animate } from '@wordpress/components';
import { useSelect } from '@wordpress/data';
import { store as editorStore } from '@wordpress/editor';
Expand Down Expand Up @@ -260,6 +261,11 @@ function SubscribersAffirmation( { accessLevel, prePublish = false } ) {

if ( ! isSendEmailEnabled() ) {
text = __( 'Not sent via email.', 'jetpack' );
} else if ( isComingSoon() ) {
text = __(
'Your site is in Coming Soon mode. Emails are sent only when your site is public.',
'jetpack'
);
} else if ( newsletterCategoriesEnabled && newsletterCategories.length > 0 && ! isPaidPost ) {
// Get newsletter category copy & count separately, unless post is paid
text = getCopyForCategorySubscribers( {
Expand Down

0 comments on commit 5885330

Please sign in to comment.