From c6effa5afc6e64ce61ba3fa923ce36d93b0ce0f9 Mon Sep 17 00:00:00 2001 From: Sazedul Haque Date: Tue, 5 May 2026 12:31:24 +0600 Subject: [PATCH 1/2] Make password modal non-dismissible Add data-tutor-modal-no-dismiss to the password-protected template to mark the modal as non-dismissible. Update modal.js to skip closing modals that have this attribute on Escape or overlay/click, while still allowing explicit close buttons to close such modals. This prevents accidental dismissal of the password prompt while preserving deliberate close actions. --- templates/single/password-protected.php | 2 +- v2-library/src/js/modal.js | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/single/password-protected.php b/templates/single/password-protected.php index 9addac2d6d..b41dc719c2 100644 --- a/templates/single/password-protected.php +++ b/templates/single/password-protected.php @@ -18,7 +18,7 @@ has_video_in_single() ? tutor_course_video() : get_tutor_course_thumbnail(); ?> -