Coding Standards: Ensure cookie expiration value is an integer in `wp_update_user()`.
This addresses an issue in `wp_update_user()`, where `time()` is subtracted from the `$logged_in_cookie['expiration']` of type `string`. Follow-up to [29043]. Props justlevine. See #52217. Built from https://develop.svn.wordpress.org/trunk@59377 git-svn-id: http://core.svn.wordpress.org/trunk@58763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fada226ed4
commit
8adbd5815c
|
@ -2792,7 +2792,7 @@ All at ###SITENAME###
|
|||
|
||||
$remember = false;
|
||||
|
||||
if ( false !== $logged_in_cookie && ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) {
|
||||
if ( false !== $logged_in_cookie && ( (int) $logged_in_cookie['expiration'] - time() ) > $default_cookie_life ) {
|
||||
$remember = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59376';
|
||||
$wp_version = '6.8-alpha-59377';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue