From 1236aa9aa1ffd64497662e20c9af1919d423b93c Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sun, 6 Apr 2025 22:29:28 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f12e925a69..ac5650ec5d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9ec37ff71d..feeb01c964 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.