WordPress.org

Make WordPress Core

Ticket #3123: revert_login_post_vars.diff

File revert_login_post_vars.diff, 1.4 KB (added by markjaquith, 12 years ago)

Revert login post vars to "pwd" and "log", per Matt's request

  • wp-login.php

     
    284284                $redirect_to = $_REQUEST['redirect_to'];
    285285
    286286        if ( $_POST ) {
    287                 $user_login = $_POST['user_login'];
     287                $user_login = $_POST['log'];
    288288                $user_login = sanitize_user( $user_login );
    289                 $user_pass  = $_POST['user_pass'];
     289                $user_pass  = $_POST['pwd'];
    290290                $rememberme = $_POST['rememberme'];
    291291        } else {
    292292                $cookie_login = wp_get_cookie_login();
     
    336336<form name="loginform" id="loginform" action="wp-login.php" method="post">
    337337        <p>
    338338                <label><?php _e('Username:') ?><br />
    339                 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" tabindex="10" /></label>
     339                <input type="text" name="log" id="user_login" class="input" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="20" tabindex="10" /></label>
    340340        </p>
    341341        <p>
    342342                <label><?php _e('Password:') ?><br />
    343                 <input type="password" name="user_pass" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
     343                <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    344344        </p>
    345345<?php do_action('login_form'); ?>
    346346        <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember me'); ?></label></p>