WordPress.org

Make WordPress Core

Ticket #48222: 48222.2.diff

File 48222.2.diff, 1.6 KB (added by adamsilverstein, 6 weeks ago)

data-lpignore="true" approach

  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index 58b99b1b23..7f9be1206e 100644
    switch ( $action ) { 
    941941                                </p>
    942942
    943943                                <div class="wp-pwd">
    944                                         <input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" />
     944                                        <input type="password" data-lpignore="true" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" />
    945945
    946946                                        <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' ); ?>">
    947947                                                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
    switch ( $action ) { 
    13451345                        <div class="user-pass-wrap">
    13461346                                <label for="user_pass"><?php _e( 'Password' ); ?></label>
    13471347                                <div class="wp-pwd">
    1348                                         <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" />
     1348                                        <input type="password" data-lpignore="true" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" />
    13491349                                        <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>">
    13501350                                                <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
    13511351                                        </button>