Make WordPress Core

Changeset 33438


Ignore:
Timestamp:
07/27/2015 03:12:55 AM (11 years ago)
Author:
markjaquith
Message:

Toggle between dashicons-hidden and dashicons-visibility in the password hide/show button.

fixes #33135

Location:
trunk/src/wp-admin
Files:
4 edited

Legend:

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

    r33437 r33438  
    142142                                        <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
    143143                                        <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    144                                                 <span class="dashicons dashicons-visibility"></span>
     144                                                <span class="dashicons dashicons-hidden"></span>
    145145                                                <span class="text"><?php _e( 'Hide' ); ?></span>
    146146                                        </button>
  • trunk/src/wp-admin/js/user-profile.js

    r33384 r33438  
    144144                                pwWrapper.addClass( 'show-password' );
    145145                                pw_togglebtn.attr({ 'data-toggle': 0, 'aria-label': userProfileL10n.ariaHide })
    146                                         .find( '.text' ).text( userProfileL10n.hide )
    147                                 ;
     146                                        .find( '.text' ).text( userProfileL10n.hide );
     147                                pw_togglebtn.find( '.dashicons' ).removeClass('dashicons-visibility').addClass('dashicons-hidden');
    148148                                pwFieldText.focus();
    149149                                if ( ! _.isUndefined( pwFieldText[0].setSelectionRange ) ) {
     
    154154                                pw_togglebtn.attr({ 'data-toggle': 1, 'aria-label': userProfileL10n.ariaShow })
    155155                                        .find( '.text' ).text( userProfileL10n.show );
     156                                pw_togglebtn.find( '.dashicons' ).removeClass('dashicons-hidden').addClass('dashicons-visibility');
    156157                                pw_field.focus();
    157158                                if ( ! _.isUndefined( pw_field[0].setSelectionRange ) ) {
  • trunk/src/wp-admin/user-edit.php

    r33420 r33438  
    471471                        <input type="password" name="pass1" id="pass1" class="regular-text" value="" autocomplete="off" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
    472472                        <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    473                                 <span class="dashicons dashicons-visibility"></span>
     473                                <span class="dashicons dashicons-hidden"></span>
    474474                                <span class="text"><?php _e( 'Hide' ); ?></span>
    475475                        </button>
  • trunk/src/wp-admin/user-new.php

    r33419 r33438  
    405405                                <input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
    406406                                <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
    407                                         <span class="dashicons dashicons-visibility"></span>
     407                                        <span class="dashicons dashicons-hidden"></span>
    408408                                        <span class="text"><?php _e( 'Hide' ); ?></span>
    409409                                </button>
Note: See TracChangeset for help on using the changeset viewer.