File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ public static function handle_started(): bool {
22
22
$ status = get_option ( Options::get_option_name ( 'status ' ) );
23
23
if ( 'started ' !== $ status && 'completed ' !== $ status ) {
24
24
update_option ( Options::get_option_name ( 'status ' ), 'started ' );
25
-
25
+
26
26
// Store start time when onboarding begins
27
27
update_option ( Options::get_option_name ( 'start_time ' ), time () );
28
-
28
+
29
29
do_action ( 'newfold/onboarding/started ' );
30
30
return true ;
31
31
}
@@ -40,7 +40,7 @@ public static function handle_started(): bool {
40
40
public static function handle_abandoned (): void {
41
41
if ( 'started ' === get_option ( Options::get_option_name ( 'status ' ) ) ) {
42
42
update_option ( Options::get_option_name ( 'status ' ), 'abandoned ' );
43
-
43
+
44
44
// Clean up time tracking when onboarding is abandoned
45
45
delete_option ( Options::get_option_name ( 'start_time ' ) );
46
46
delete_option ( Options::get_option_name ( 'completed_time ' ) );
@@ -193,7 +193,7 @@ public static function track(): void {
193
193
}
194
194
195
195
// Ignore if the request is not for the onboarding page.
196
- if ( isset ( $ _GET ['page ' ] ) && WP_Admin:: $ slug === \sanitize_text_field ( $ _GET ['page ' ] ) ) {
196
+ if ( isset ( $ _GET ['page ' ] ) && \sanitize_text_field ( $ _GET ['page ' ] ) === WP_Admin:: $ slug ) {
197
197
return ;
198
198
}
199
199
You can’t perform that action at this time.
0 commit comments