Skip to content

Commit 99fa374

Browse files
committed
Trash wp sample post on start
1 parent 0cb5ded commit 99fa374

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

includes/Services/AppService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public function start(): void {
3131
update_option( Options::get_option_name( 'redirect' ), '0' );
3232
// If Onboarding is running for the first time...
3333
if ( StatusService::handle_started() ) {
34+
// Trash sample page.
35+
LegacySiteGenService::trash_sample_page();
36+
3437
// Initialize services.
3538
SettingsService::initialize();
3639
PluginService::initialize();
@@ -50,8 +53,7 @@ public function complete( string $selected_sitegen_homepage ): void {
5053
if ( \is_wp_error( $result ) ) {
5154
throw new \Exception( $result->get_error_message() );
5255
}
53-
// Trash sample page and preview posts.
54-
LegacySiteGenService::trash_sample_page();
56+
// Trash Preview pages.
5557
PreviewsService::trash_preview_pages();
5658

5759
// Purge all caches.

0 commit comments

Comments
 (0)