From 5fd9623df60e0a5f02c4c31be80fa8f58fbe9a12 Mon Sep 17 00:00:00 2001 From: David Stone Date: Tue, 26 May 2026 23:54:12 -0600 Subject: [PATCH] fix: use yoda condition for tour persistence guard --- inc/ui/class-tours.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/ui/class-tours.php b/inc/ui/class-tours.php index fa2b835c..cac3b12d 100644 --- a/inc/ui/class-tours.php +++ b/inc/ui/class-tours.php @@ -356,7 +356,7 @@ function () use ($id, $steps, $once) { * fire markTourFinished for completeness (the operation is * idempotent). */ - if ($once && ! $pre_filter_finished && ! $finished) { + if (true === $once && false === $pre_filter_finished && false === $finished) { $user_id = get_current_user_id(); if ($user_id) {