diff --git a/plugins/woocommerce/changelog/update-lys-init-coming-soon b/plugins/woocommerce/changelog/update-lys-init-coming-soon new file mode 100644 index 00000000000..07c3800ccea --- /dev/null +++ b/plugins/woocommerce/changelog/update-lys-init-coming-soon @@ -0,0 +1,4 @@ +Significance: patch +Type: tweak + +Prevent initializing coming soon feature if it's already initialized diff --git a/plugins/woocommerce/src/Admin/API/LaunchYourStore.php b/plugins/woocommerce/src/Admin/API/LaunchYourStore.php index 3bc45b296c9..735e18bba64 100644 --- a/plugins/woocommerce/src/Admin/API/LaunchYourStore.php +++ b/plugins/woocommerce/src/Admin/API/LaunchYourStore.php @@ -128,6 +128,11 @@ class LaunchYourStore { return; } + if ( false === get_option( 'woocommerce_store_pages_only', false ) ) { + // Coming soon already initialized. + return false; + } + $coming_soon = 'yes'; $store_pages_only = WCAdminHelper::is_site_fresh() ? 'no' : 'yes'; $private_link = 'no';