Introduce a Cancel button and onUnload warning for password changes.

fixes #33079
props johnjamesjacoby

git-svn-id: https://develop.svn.wordpress.org/trunk@33364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2015-07-22 18:35:51 +00:00
parent fece657158
commit 9ca3978a3e
4 changed files with 31 additions and 3 deletions
+3
View File
@@ -407,6 +407,9 @@ if ( apply_filters( 'show_password_fields', true ) ) : ?>
<span class="dashicons dashicons-visibility"></span>
<span class="text"><?php _e( 'Hide' ); ?></span>
</button>
<button type="button" class="button button-secondary wp-cancel-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Cancel password change' ); ?>">
<span class="text"><?php _e( 'Cancel' ); ?></span>
</button>
<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
</div>
<p><span class="description"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></span></p>