Changeset 59633 for trunk/src/wp-includes/user.php
- Timestamp:
- 01/16/2025 03:33:31 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r59595 r59633 2781 2781 if ( $current_user->ID === $user_id ) { 2782 2782 if ( isset( $plaintext_pass ) ) { 2783 wp_clear_auth_cookie();2784 2785 2783 /* 2786 2784 * Here we calculate the expiration length of the current auth cookie and compare it to the default expiration. … … 2791 2789 $default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $user_id, false ); 2792 2790 2791 wp_clear_auth_cookie(); 2792 2793 2793 $remember = false; 2794 $token = ''; 2795 2796 if ( false !== $logged_in_cookie ) { 2797 $token = $logged_in_cookie['token']; 2798 } 2794 2799 2795 2800 if ( false !== $logged_in_cookie && ( (int) $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) { … … 2797 2802 } 2798 2803 2799 wp_set_auth_cookie( $user_id, $remember );2804 wp_set_auth_cookie( $user_id, $remember, '', $token ); 2800 2805 } 2801 2806 }
Note: See TracChangeset
for help on using the changeset viewer.