We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
generatePassword()
1 parent ac4f65c commit d33bb7bCopy full SHA for d33bb7b
src/js/_enqueues/admin/user-profile.js
@@ -60,14 +60,17 @@
60
if ( 'mailserver_pass' !== $pass1.prop('id' ) && ! $('#weblog_title').length ) {
61
$( $pass1 ).trigger( 'focus' );
62
}
63
+
64
+ if ( $form && $form.length ) {
65
+ originalFormContent = $form.serialize();
66
+ }
67
68
69
function bindPass1() {
70
currentPass = $pass1.val();
71
72
if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) {
73
generatePassword();
- originalFormContent = $form.serialize();
74
75
76
$pass1.on( 'input' + ' pwupdate', function () {
0 commit comments