Make WordPress Core

Ticket #27627: 27627.diff

File 27627.diff, 510 bytes (added by jesin, 11 years ago)

Set the $remember boolean when calling wp_set_auth_cookie() inside wp_update_user()

  • wp-includes/user.php

     
    18151815        if ( $current_user->ID == $ID ) {
    18161816                if ( isset($plaintext_pass) ) {
    18171817                        wp_clear_auth_cookie();
    1818                         wp_set_auth_cookie($ID);
     1818                        $logged_in_cookie = wp_parse_auth_cookie( '', 'logged_in' );
     1819                        wp_set_auth_cookie( $ID, ( ( $logged_in_cookie['expiration'] - time() ) > ( 2 * DAY_IN_SECONDS ) ) );
    18191820                }
    18201821        }
    18211822