| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 657 lines (20 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| generatePassword() X-Ref |
| Generates a password and updates the password input field. If zxcvbn is not yet loaded, it will wait and try again. If the password input field is empty or the password wrapper is open, it will set the password to the generated value. If the user has already entered a password, it will check the strength of that password. It also binds the toggle button to show or hide the password and sets the initial state of the toggle button based on whether the password should be masked or not. Finally, it updates the label for confirming weak passwords. |
| bindPass1() X-Ref |
| Binds the password input field to update the current password and refresh the password strength area when the user types in the field. |
| resetToggle( show ) X-Ref |
| Resets the toggle button to show or hide the password. param: {boolean} show Whether to show the password or not. |
| bindToggleButton() X-Ref |
| Binds the toggle button to show or hide the password. Also ensures that the password input type is set to password when the form is submitted. |
| bindPasswordResetLink() X-Ref |
| Handle the password reset button. Sets up an ajax callback to trigger sending a password reset email. |
| addInlineNotice( $this, success, message ) X-Ref |
| Helper function to insert an inline notice of success or failure. param: {jQuery Object} $this The button element: the message will be inserted param: {boolean} success Whether the message is a success message. param: {string} message The message to insert. |
| bindPasswordForm() X-Ref |
| Initializes the password form, including the password strength meter, weak password checkbox, and show/hide password toggle button. |
| check_pass_strength() X-Ref |
| Sets CSS classes to the password strength results based on the password strength. |
| bindCapsLockWarning( $input ) X-Ref |
| Bind Caps Lock detection to a password input field. param: {jQuery} $input The password input field. |
| isCapsLockOn( event ) X-Ref |
| Determines if Caps Lock is currently enabled. On macOS Safari and Firefox, the native warning is preferred, so this function returns false to suppress custom warnings. param: {KeyboardEvent} event The keydown event object. return: {boolean} True if Caps Lock is on, false otherwise. |
| showOrHideWeakPasswordCheckbox() X-Ref |
| Toggles the visibility of the weak password checkbox. |
| Generated : Fri Sep 18 08:20:28 2026 | Cross-referenced by PHPXref |