Make WordPress Core


Ignore:
Timestamp:
07/01/2016 12:44:43 PM (8 years ago)
Author:
peterwilsoncc
Message:

Users: Check zxcvbn is defined before calling.

Prevents JavaScript errors by checking zxcvbn is defined before calling.

Changes wp.passwordStrength.meter() to return -1 if the strength of the password is unknown.

On the user profile screen, generatePassword() checks if the user has entered the password before setting the value of the password input box.

Props peterwilsoncc, adamsilverstein.
Fixes #34905.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r37914 r37940  
    532532        <label>
    533533            <input type="checkbox" name="pw_weak" class="pw-checkbox" />
    534             <?php _e( 'Confirm use of weak password' ); ?>
     534            <span id="pw-weak-text-label"><?php _e( 'Confirm use of potentially weak password' ); ?></span>
    535535        </label>
    536536    </td>
Note: See TracChangeset for help on using the changeset viewer.