Skip to content

Commit 8b481db

Browse files
committed
Update WP_Admin.php
1 parent 3cf622c commit 8b481db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

includes/WP_Admin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ public static function set_onboarding_restart_option(): void {
244244
// Add the option if it doesn't exist
245245
add_option( $option_name, true );
246246
}
247+
} else {
248+
// Get the option name for 'can_restart'
249+
$option_name = Options::get_option_name( 'can_restart' );
250+
251+
// Add the option if it doesn't exist
252+
update_option( $option_name, false );
247253
}
248254
}
249255

0 commit comments

Comments
 (0)