Make WordPress Core


Ignore:
Timestamp:
09/18/2024 12:12:52 AM (3 months ago)
Author:
jeremyfelt
Message:

Application Passwords: Add copy button when adding new password.

Props circlecube, dhruvang21, ironprogrammer, desrosj.
Fixes #62019.

File:
1 edited

Legend:

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

    r58820 r59046  
    985985                </label>
    986986                <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="{{ data.password }}" />
     987                <button type="button" class="button copy-button" data-clipboard-text="{{ data.password }}"><?php _e( 'Copy' ); ?></button>
     988                <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
    987989            </p>
    988990            <p><?php _e( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.