Make WordPress Core


Ignore:
Timestamp:
07/22/2015 06:35:51 PM (10 years ago)
Author:
markjaquith
Message:

Introduce a Cancel button and onUnload warning for password changes.

fixes #33079
props johnjamesjacoby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r33353 r33364  
    375375    $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
    376376    did_action( 'init' ) && $scripts->localize( 'user-profile', 'userProfileL10n', array(
    377         'show' => __( 'Show' ),
    378         'hide' => __( 'Hide' ),
     377        'warn'     => __( 'Your new password has not been saved.' ),
     378        'show'     => __( 'Show' ),
     379        'hide'     => __( 'Hide' ),
     380        'cancel'   => __( 'Cancel' ),
    379381        'ariaShow' => esc_attr__( 'Show password' ),
    380382        'ariaHide' => esc_attr__( 'Hide password' ),
Note: See TracChangeset for help on using the changeset viewer.