WordPress.org

Make WordPress Core

Changeset 14280


Ignore:
Timestamp:
04/28/2010 05:01:55 PM (10 years ago)
Author:
nacin
Message:

Keep 'remember me' checked when user/pass is incorrect. props xibe, fixes #13165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r13884 r14280  
    573573    if ( isset($_POST['log']) )
    574574        $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(stripslashes($_POST['log'])) : '';
     575    $rememberme = ! empty( $_POST['rememberme'] );
    575576?>
    576577
     
    585586    </p>
    586587<?php do_action('login_form'); ?>
    587     <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php esc_attr_e('Remember Me'); ?></label></p>
     588    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
    588589    <p class="submit">
    589590        <input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Log In'); ?>" tabindex="100" />
Note: See TracChangeset for help on using the changeset viewer.