From d31caf5d7cce969ace65908634614c6c684e0f77 Mon Sep 17 00:00:00 2001 From: Rahul Gandhi Date: Wed, 7 Jan 2026 15:55:54 +0530 Subject: [PATCH] Password strength doesn't enable/disable register button based on Minimum password strength setting --- includes/class-forms.php | 10 +++++----- includes/template-functions.php | 10 +++++----- readme.txt | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/includes/class-forms.php b/includes/class-forms.php index d6368497..65c0f6f4 100644 --- a/includes/class-forms.php +++ b/includes/class-forms.php @@ -4876,11 +4876,11 @@ function (event) { var $form = $(this).closest('form'); if( ! $form.hasClass('uwp-login-form') ) { uwp_checkPasswordStrength( - $('input[name=password]', $form), // First password field - $('input[name=confirm_password]', $form), // Second password field - $('#uwp-password-strength', $form), // Strength meter - $('input[type=submit]', $form), // Submit button - ['black', 'listed', 'word'] // Blacklisted words + $form.find('input[name=password]'), + $form.find('input[name=confirm_password]'), + $form.find('#uwp-password-strength'), + $form.find('button[type="submit"], input[type="submit"]'), + ['black', 'listed', 'word'] ); } } diff --git a/includes/template-functions.php b/includes/template-functions.php index d99c7847..7f298b3a 100644 --- a/includes/template-functions.php +++ b/includes/template-functions.php @@ -158,11 +158,11 @@ function( event ) { var $form = $(this).closest('form'); if( ! $form.hasClass('uwp-login-form') ) { uwp_checkPasswordStrength( - $('input[name=password]', $form), // First password field - $('input[name=confirm_password]', $form), // Second password field - $('#uwp-password-strength', $form), // Strength meter - $('input[type=submit]', $form), // Submit button - ['black', 'listed', 'word'] // Blacklisted words + $form.find('input[name=password]'), + $form.find('input[name=confirm_password]'), + $form.find('#uwp-password-strength'), + $form.find('button[type="submit"], input[type="submit"]'), + ['black', 'listed', 'word'] ); } } diff --git a/readme.txt b/readme.txt index 0ede6313..f826866f 100644 --- a/readme.txt +++ b/readme.txt @@ -154,6 +154,7 @@ Yes, you can customize it with Elementor, but also with Gutenberg, Divi, Beaver = 1.2.53 - TBD = * Prevent duplicate event handlers in registration form switcher causing multiple AJAX requests - FIXED +* Password strength doesn't enable/disable register button based on Minimum password strength setting - FIXED = 1.2.52 - 2025-12-18 = * Fixed issue with the profile url page not working if child page - FIXED