WordPress.org

Make WordPress Core

Ticket #41431: 41431.patch

File 41431.patch, 1.2 KB (added by tejas5989, 4 years ago)

I have added autocomplete attribute in the patch.

  • wp-includes/general-template.php

     
    399399                'label_log_in' => __( 'Log In' ),
    400400                'id_username' => 'user_login',
    401401                'id_password' => 'user_pass',
     402                'id_autocomplete' => 'off',
    402403                'id_remember' => 'rememberme',
    403404                'id_submit' => 'wp-submit',
    404405                'remember' => true,
     
    464465                        </p>
    465466                        <p class="login-password">
    466467                                <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label>
    467                                 <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" />
     468                                <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" autocomplete="' . esc_attr( $args['id_autocomplete'] ) . '"/>
    468469                        </p>
    469470                        ' . $login_form_middle . '
    470471                        ' . ( $args['remember'] ? '<p class="login-remember"><label><input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> ' . esc_html( $args['label_remember'] ) . '</label></p>' : '' ) . '