diff --git a/src/wp-admin/js/user-profile.js b/src/wp-admin/js/user-profile.js index c5f5db36ea..650fbd5d00 100644 --- a/src/wp-admin/js/user-profile.js +++ b/src/wp-admin/js/user-profile.js @@ -260,12 +260,14 @@ resetToggle(); - // Clear password field to prevent update - $pass1.val( '' ).trigger( 'pwupdate' ); - $submitButtons.prop( 'disabled', false ); + if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) { + // Clear password field to prevent update + $pass1.val( '' ).trigger( 'pwupdate' ); + $submitButtons.prop( 'disabled', false ); + } } ); - $pass1Row.closest('form').on( 'submit', function () { + $pass1Row.closest( 'form' ).on( 'submit', function () { updateLock = false; $pass1.prop( 'disabled', false );