From 566350351233419104eed2d688da15aeb673ff23 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Mon, 15 Jul 2019 01:05:12 +0200
Subject: [PATCH] PHP 7.4/array-access: Fix wp_update_user()
---
src/wp-includes/user.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 3d2bf939d4..fab14519df 100644
a
|
b
|
All at ###SITENAME### |
2088 | 2088 | $logged_in_cookie = wp_parse_auth_cookie( '', 'logged_in' ); |
2089 | 2089 | /** This filter is documented in wp-includes/pluggable.php */ |
2090 | 2090 | $default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $ID, false ); |
2091 | | $remember = ( ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ); |
| 2091 | $remember = false; |
| 2092 | if ( false !== $logged_in_cookie && ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) { |
| 2093 | $remember = true; |
| 2094 | } |
2092 | 2095 | |
2093 | 2096 | wp_set_auth_cookie( $ID, $remember ); |
2094 | 2097 | } |