diff --git src/js/_enqueues/admin/user-profile.js src/js/_enqueues/admin/user-profile.js
index 386f8ae593..782f56c13d 100644
|
|
|
|
| 272 | 272 | function check_pass_strength() { |
| 273 | 273 | var pass1 = $('#pass1').val(), strength; |
| 274 | 274 | |
| 275 | | $('#pass-strength-result').removeClass('short bad good strong'); |
| | 275 | $('#pass-strength-result').removeClass('short bad good strong empty'); |
| 276 | 276 | if ( ! pass1 ) { |
| 277 | | $('#pass-strength-result').html( ' ' ); |
| | 277 | $('#pass-strength-result').addClass( 'empty' ).html( ' ' ); |
| 278 | 278 | return; |
| 279 | 279 | } |
| 280 | 280 | |
| … |
… |
|
| 312 | 312 | } |
| 313 | 313 | $weakRow.show(); |
| 314 | 314 | } else { |
| 315 | | $submitButtons.prop( 'disabled', false ); |
| | 315 | if ( $( passStrength ).is( '.empty' ) ) { |
| | 316 | $submitButtons.prop( 'disabled', true ); |
| | 317 | $weakCheckbox.prop( 'checked', false ); |
| | 318 | } else { |
| | 319 | $submitButtons.prop( 'disabled', false ); |
| | 320 | } |
| 316 | 321 | $weakRow.hide(); |
| 317 | 322 | } |
| 318 | 323 | } |