WordPress.org

Make WordPress Core

Ticket #41136: 41136.patch

File 41136.patch, 2.4 KB (added by dhanendran, 2 years ago)

autocomplete attribute added

  • src/wp-signup.php

     
    114114        if ( !is_subdomain_install() )
    115115                echo '<span class="prefix_address">' . $current_network->domain . $current_network->path . '</span><input name="blogname" type="text" id="blogname" value="'. esc_attr($blogname) .'" maxlength="60" /><br />';
    116116        else
    117                 echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="60" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_network->domain ) ) . '</span><br />';
     117                echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="60" autocomplete="off" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_network->domain ) ) . '</span><br />';
    118118
    119119        if ( ! is_user_logged_in() ) {
    120120                if ( ! is_subdomain_install() ) {
     
    229229        if ( $errmsg = $errors->get_error_message('user_name') ) {
    230230                echo '<p class="error">'.$errmsg.'</p>';
    231231        }
    232         echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr( $user_name ) .'" autocapitalize="none" autocorrect="off" maxlength="60" /><br />';
     232        echo '<input name="user_name" type="text" id="user_name" value="'. esc_attr( $user_name ) .'" autocapitalize="none" autocorrect="off" maxlength="60" autocomplete="off" /><br />';
    233233        _e( '(Must be at least 4 characters, letters and numbers only.)' );
    234234        ?>
    235235
  • src/wp-includes/general-template.php

     
    460460                        ' . $login_form_top . '
    461461                        <p class="login-username">
    462462                                <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label>
    463                                 <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . esc_attr( $args['value_username'] ) . '" size="20" />
     463                                <input type="text" name="log" id="' . esc_attr( $args['id_username'] ) . '" class="input" value="' . esc_attr( $args['value_username'] ) . '" size="20" autocomplete="off" />
    464464                        </p>
    465465                        <p class="login-password">
    466466                                <label for="' . esc_attr( $args['id_password'] ) . '">' . esc_html( $args['label_password'] ) . '</label>