From 7d445a3e005b17cb409820523145cbf26d8c8849 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Feb 2015 13:04:03 +0000 Subject: [PATCH] When creating a new user, pasting a password should update the password strength indicator. props dipesh.kakadiya. fixes #31226. git-svn-id: https://develop.svn.wordpress.org/trunk@31483 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/user-profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js index ba99586c59..72a2465c56 100644 --- a/src/wp-admin/js/user-profile.js +++ b/src/wp-admin/js/user-profile.js @@ -34,8 +34,8 @@ var $colorpicker, $stylesheet, user_id, current_user_id, select = $( '#display_name' ); - $('#pass1').val('').keyup( check_pass_strength ); - $('#pass2').val('').keyup( check_pass_strength ); + $('#pass1').val('').on( 'input propertychange', check_pass_strength ); + $('#pass2').val('').on( 'input propertychange', check_pass_strength ); $('#pass-strength-result').show(); $('.color-palette').click( function() { $(this).siblings('input[name="admin_color"]').prop('checked', true);