mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
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:
@@ -374,8 +374,10 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'user-profile', 'userProfileL10n', array(
|
||||
'show' => __( 'Show' ),
|
||||
'hide' => __( 'Hide' ),
|
||||
'warn' => __( 'Your new password has not been saved.' ),
|
||||
'show' => __( 'Show' ),
|
||||
'hide' => __( 'Hide' ),
|
||||
'cancel' => __( 'Cancel' ),
|
||||
'ariaShow' => esc_attr__( 'Show password' ),
|
||||
'ariaHide' => esc_attr__( 'Hide password' ),
|
||||
) );
|
||||
|
||||
Reference in New Issue
Block a user