Docs: Fix types for wp_cache_set_last_changed filter.

Corrects the type for the `$time` and `$previous_time` parameters in the filter to indicate the times are expressed as strings. The values are generated from a call to `microtime()` which returns the time as a string in the form `msec sec`.

Reviewed by audrasjb.
Merges [60128] to the 6.8 branch.

Props tillkruess, westonruter.
Fixes #63194.


Built from https://develop.svn.wordpress.org/branches/6.8@60133


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Peter Wilson
2025-04-06 22:29:28 +00:00
parent fde5146524
commit 1236aa9aa1
2 changed files with 4 additions and 4 deletions

View File

@@ -8070,9 +8070,9 @@ function wp_cache_set_last_changed( $group ) {
*
* @since 6.3.0
*
* @param string $group The cache group name.
* @param int $time The new last changed time.
* @param int|false $previous_time The previous last changed time. False if not previously set.
* @param string $group The cache group name.
* @param string $time The new last changed time (msec sec).
* @param string|false $previous_time The previous last changed time. False if not previously set.
*/
do_action( 'wp_cache_set_last_changed', $group, $time, $previous_time );

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-RC2-60126';
$wp_version = '6.8-RC2-60133';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.