Skip to content

Commit 45a4fe0

Browse files
Users: Prevent false unsaved changes warning on Add User screen.
1 parent 2802727 commit 45a4fe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/_enqueues/admin/user-profile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767

6868
if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) {
6969
generatePassword();
70+
originalFormContent = $form.serialize();
7071
}
7172

7273
$pass1.on( 'input' + ' pwupdate', function () {

0 commit comments

Comments
 (0)