Ticket #33699: 33699.2.diff
File 33699.2.diff, 844 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/user-profile.js
196 196 } ); 197 197 198 198 // Disable the hidden inputs to prevent autofill and submission. 199 $pass1.prop( 'disabled', true ); 200 $pass2.prop( 'disabled', true ); 201 $pass1Text.prop( 'disabled', true ); 199 if ( 'admin_password' == $pass1.attr( 'name' ) ) { 200 $pass1.prop( 'disabled', false ); 201 $pass2.prop( 'disabled', false ); 202 $pass1Text.prop( 'disabled', false ); 203 } else { 204 $pass1.prop( 'disabled', true ); 205 $pass2.prop( 'disabled', true ); 206 $pass1Text.prop( 'disabled', true ); 207 } 202 208 203 209 $passwordWrapper = $pass1Row.find( '.wp-pwd' ); 204 210 $generateButton = $pass1Row.find( 'button.wp-generate-pw' );