File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ public function start(): void {
31
31
update_option ( Options::get_option_name ( 'redirect ' ), '0 ' );
32
32
// If Onboarding is running for the first time...
33
33
if ( StatusService::handle_started () ) {
34
+ // Trash sample page.
35
+ LegacySiteGenService::trash_sample_page ();
36
+
34
37
// Initialize services.
35
38
SettingsService::initialize ();
36
39
PluginService::initialize ();
@@ -50,8 +53,7 @@ public function complete( string $selected_sitegen_homepage ): void {
50
53
if ( \is_wp_error ( $ result ) ) {
51
54
throw new \Exception ( $ result ->get_error_message () );
52
55
}
53
- // Trash sample page and preview posts.
54
- LegacySiteGenService::trash_sample_page ();
56
+ // Trash Preview pages.
55
57
PreviewsService::trash_preview_pages ();
56
58
57
59
// Purge all caches.
You can’t perform that action at this time.
0 commit comments