mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 12:05:47 +00:00
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;
|
$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;
|
$remember = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user